]> git.proxmox.com Git - mirror_ovs.git/blame - debian/rules.modules
datapath: Rename linux-2.6 and compat-2.6 directories.
[mirror_ovs.git] / debian / rules.modules
CommitLineData
a84edf54
BP
1#! /usr/bin/make -f
2
3PACKAGE=openvswitch-datapath-module
4MA_DIR ?= /usr/share/modass
5-include $(MA_DIR)/include/generic.make
6-include $(MA_DIR)/include/common-rules.make
7
8DATAPATH_CONFIGURE_OPTS =
9
10# Official build number. Leave set to 0 if not an official build.
11BUILD_NUMBER = 0
12
13kdist_clean:
14 dh_testdir
15 dh_testroot
16 dh_clean
17 rm -rf openvswitch
18
19.PHONY: kdist_config
20kdist_config: prep-deb-files
21
22.PHONY: binary-modules
3d41239d 23binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel
a84edf54
BP
24binary-modules: prep-deb-files
25 dh_testdir
26 dh_testroot
27 dh_clean -k
28 tar xzf openvswitch.tar.gz
8a2d6596 29 cd openvswitch && ./configure --with-linux=$(KSRC) $(DATAPATH_CONFIGURE_OPTS) --with-build-number=$(BUILD_NUMBER)
22bcc0e7 30 cd openvswitch && $(MAKE) -C datapath/linux
a84edf54 31 install -d -m755 $(DSTDIR)
22bcc0e7 32 install -m644 openvswitch/datapath/linux/*_mod.ko $(DSTDIR)/
3d41239d 33 dh_installmodules
a84edf54
BP
34 dh_installdocs
35 dh_installchangelogs
36 dh_compress
37 dh_fixperms
38 dh_installdeb
39 dh_gencontrol
40 dh_md5sums
41 dh_builddeb --destdir=$(DEB_DESTDIR)
42