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 =
10 # Official build number. Leave set to 0 if not an official build.
20 kdist_config: prep-deb-files
22 .PHONY: binary-modules
23 binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel
24 binary-modules: prep-deb-files
28 tar xzf openvswitch.tar.gz
29 cd openvswitch && ./configure --with-l26=$(KSRC) $(DATAPATH_CONFIGURE_OPTS) --with-build-number=$(BUILD_NUMBER)
30 cd openvswitch && $(MAKE) -C datapath/linux-2.6
31 install -d -m755 $(DSTDIR)
32 install -m644 openvswitch/datapath/linux-2.6/*_mod.ko $(DSTDIR)/
41 dh_builddeb --destdir=$(DEB_DESTDIR)