]> git.proxmox.com Git - mirror_ovs.git/blame - debian/rules.modules
cirrus: Use FreeBSD 12.2.
[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
a84edf54 10kdist_clean:
c431227e 11 dh_testdir
a84edf54
BP
12 dh_testroot
13 dh_clean
14 rm -rf openvswitch
15
16.PHONY: kdist_config
17kdist_config: prep-deb-files
18
19.PHONY: binary-modules
6741ca0d 20binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/updates
a84edf54
BP
21binary-modules: prep-deb-files
22 dh_testdir
23 dh_testroot
24 dh_clean -k
25 tar xzf openvswitch.tar.gz
8a07709c 26 cd openvswitch && ./configure --with-linux=$(KSRC) $(DATAPATH_CONFIGURE_OPTS)
22bcc0e7 27 cd openvswitch && $(MAKE) -C datapath/linux
a84edf54 28 install -d -m755 $(DSTDIR)
05d4ae3a 29 install -m644 openvswitch/datapath/linux/*.ko $(DSTDIR)/
3d41239d 30 dh_installmodules
a84edf54
BP
31 dh_installdocs
32 dh_installchangelogs
33 dh_compress
34 dh_fixperms
35 dh_installdeb
36 dh_gencontrol
37 dh_md5sums
38 dh_builddeb --destdir=$(DEB_DESTDIR)
39