]> git.proxmox.com Git - mirror_ovs.git/blame - debian/rules.modules
random: Implement a decent random number generator.
[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
23binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)
24binary-modules: prep-deb-files
25 dh_testdir
26 dh_testroot
27 dh_clean -k
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)/
33 dh_installdocs
34 dh_installchangelogs
35 dh_compress
36 dh_fixperms
37 dh_installdeb
38 dh_gencontrol
39 dh_md5sums
40 dh_builddeb --destdir=$(DEB_DESTDIR)
41