2009-12-15 10:19:03 -08:00
|
|
|
#! /usr/bin/make -f
|
|
|
|
|
|
|
|
PACKAGE=openvswitch-datapath-module
|
|
|
|
MA_DIR ?= /usr/share/modass
|
|
|
|
-include $(MA_DIR)/include/generic.make
|
|
|
|
-include $(MA_DIR)/include/common-rules.make
|
|
|
|
|
|
|
|
DATAPATH_CONFIGURE_OPTS =
|
|
|
|
|
|
|
|
kdist_clean:
|
2016-12-08 12:55:30 +00:00
|
|
|
dh_testdir
|
2009-12-15 10:19:03 -08:00
|
|
|
dh_testroot
|
|
|
|
dh_clean
|
|
|
|
rm -rf openvswitch
|
|
|
|
|
|
|
|
.PHONY: kdist_config
|
|
|
|
kdist_config: prep-deb-files
|
|
|
|
|
|
|
|
.PHONY: binary-modules
|
2015-10-06 16:35:32 -07:00
|
|
|
binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/updates
|
2009-12-15 10:19:03 -08:00
|
|
|
binary-modules: prep-deb-files
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
tar xzf openvswitch.tar.gz
|
2012-03-19 10:07:09 -07:00
|
|
|
cd openvswitch && ./configure --with-linux=$(KSRC) $(DATAPATH_CONFIGURE_OPTS)
|
2011-06-23 17:10:00 -07:00
|
|
|
cd openvswitch && $(MAKE) -C datapath/linux
|
2009-12-15 10:19:03 -08:00
|
|
|
install -d -m755 $(DSTDIR)
|
2012-03-09 13:31:41 -08:00
|
|
|
install -m644 openvswitch/datapath/linux/*.ko $(DSTDIR)/
|
2010-08-05 10:59:26 -07:00
|
|
|
dh_installmodules
|
2009-12-15 10:19:03 -08:00
|
|
|
dh_installdocs
|
|
|
|
dh_installchangelogs
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb --destdir=$(DEB_DESTDIR)
|
|
|
|
|