diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2017-08-03 16:50:07 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2017-08-03 17:07:45 +0100 |
commit | d07b5b0b6b370b7c603dd90707e0dfdb03840f56 (patch) | |
tree | cb6a755a6cd09b2e7719dad05f42b2b957c4bef7 /debian/rules | |
parent | 9d37f61d540b2c036c72e97892c7ae99d406d4c6 (diff) |
Use arch-dependent include directory in DKMS confs
Generate them at build time to substitute the right directory per
architecture to fix the build.
Change-Id: Ib6ba0820a27a4cc38d5e11dc94d35f1adece1453
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index e9e66e39..954c716c 100755 --- a/debian/rules +++ b/debian/rules @@ -166,6 +166,7 @@ override_dh_auto_clean: debian/control.modules debian/VERSION sed -i '/Package: dpdk-modules-/,/`tail -n1 debian/control.modules.in`/d' debian/control test -L config/defconfig_$(DPDK_CONFIG) && rm -f config/defconfig_$(DPDK_CONFIG) || true + rm -f debian/dpdk-igb-uio-dkms.dkms debian/dpdk-rte-kni-dkms.dkms override_dh_auto_configure: # Add support for a custom defconfig file in the debian directory. @@ -290,6 +291,9 @@ ifeq (x86_64-linux-gnu,$(DEB_HOST_MULTIARCH)) ln -rs debian/libdpdk-dev/usr/include/$(DEB_HOST_MULTIARCH)/dpdk/*.h \ debian/libdpdk-dev/usr/include/dpdk endif + # have the DKMS build include the correct per-arch directory + sed "s/@@DEB_HOST_MULTIARCH@@/$(DEB_HOST_MULTIARCH)/g" debian/dpdk-igb-uio-dkms.dkms.in > debian/dpdk-igb-uio-dkms.dkms + sed "s/@@DEB_HOST_MULTIARCH@@/$(DEB_HOST_MULTIARCH)/g" debian/dpdk-rte-kni-dkms.dkms.in > debian/dpdk-rte-kni-dkms.dkms # all static libs are in the dev package ifeq (y,$(BUILD_STATIC_LIB)) mv debian/dpdk/$(LIBDIR)/lib*.a debian/libdpdk-dev/$(LIBDIR)/ |