3 PACKAGE=openvswitch-datapath-module
4 MA_DIR ?= /usr/share/modass
5 -include $(MA_DIR)/include/generic.make
6 -include $(MA_DIR)/include/common-rules.make
8 DATAPATH_CONFIGURE_OPTS =
17 kdist_config: prep-deb-files
19 .PHONY: binary-modules
20 binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel
21 binary-modules: prep-deb-files
25 tar xzf openvswitch.tar.gz
26 cd openvswitch && ./configure --with-linux=$(KSRC) $(DATAPATH_CONFIGURE_OPTS)
27 cd openvswitch && $(MAKE) -C datapath/linux
28 install -d -m755 $(DSTDIR)
29 install -m644 openvswitch/datapath/linux/*.ko $(DSTDIR)/
38 dh_builddeb --destdir=$(DEB_DESTDIR)