aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2016-11-10 16:09:41 +0000
committerLuca Boccassi <luca.boccassi@gmail.com>2016-11-10 17:02:26 +0000
commit5f7e9d4586d361e9855e60b2dfdc31b8540e446d (patch)
tree29ffc2307d57f70606d63664bfe219c3c01f6187 /debian
parent4806115daa6950cc83894aa65afa19bf64d5e02e (diff)
Use -fno-PIE when building kernel modules
In Debian 9 -fPIE is now default, which causes build failures when building kernel modules. Pass -fno-PIE to fix it. Change-Id: Ib9187ef6ed72bd25b92fb9f449a9435fcc5cc6cf Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/dpdk-igb-uio-dkms.dkms2
-rw-r--r--debian/dpdk-rte-kni-dkms.dkms2
-rwxr-xr-xdebian/rules1
3 files changed, 3 insertions, 2 deletions
diff --git a/debian/dpdk-igb-uio-dkms.dkms b/debian/dpdk-igb-uio-dkms.dkms
index 5c7d1925..5141ff61 100644
--- a/debian/dpdk-igb-uio-dkms.dkms
+++ b/debian/dpdk-igb-uio-dkms.dkms
@@ -1,7 +1,7 @@
PACKAGE_NAME="dpdk-igb-uio"
PACKAGE_VERSION="#MODULE_VERSION#"
BUILT_MODULE_NAME[0]="igb_uio"
-MAKE="source /usr/share/dpdk/dpdk-sdk-env.sh; make MODULE_CFLAGS='-I/usr/include/dpdk -include /usr/include/dpdk/rte_config.h' RTE_KERNELDIR=/lib/modules/${kernelver}/build"
+MAKE="source /usr/share/dpdk/dpdk-sdk-env.sh; make MODULE_CFLAGS='-I/usr/include/dpdk -include /usr/include/dpdk/rte_config.h -fno-PIE' RTE_KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="source /usr/share/dpdk/dpdk-sdk-env.sh; make clean"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
diff --git a/debian/dpdk-rte-kni-dkms.dkms b/debian/dpdk-rte-kni-dkms.dkms
index 800e5805..26de0ee3 100644
--- a/debian/dpdk-rte-kni-dkms.dkms
+++ b/debian/dpdk-rte-kni-dkms.dkms
@@ -1,7 +1,7 @@
PACKAGE_NAME="dpdk-rte-kni"
PACKAGE_VERSION="#MODULE_VERSION#"
BUILT_MODULE_NAME[0]="rte_kni"
-MAKE="source /usr/share/dpdk/dpdk-sdk-env.sh; make MODULE_CFLAGS='-I/usr/include/dpdk -include /usr/include/dpdk/rte_config.h -I$source_tree/dpdk-rte-kni-#MODULE_VERSION#/ethtool/ixgbe -I$source_tree/dpdk-rte-kni-#MODULE_VERSION#/ethtool/igb' RTE_KERNELDIR=/lib/modules/${kernelver}/build"
+MAKE="source /usr/share/dpdk/dpdk-sdk-env.sh; make MODULE_CFLAGS='-I/usr/include/dpdk -include /usr/include/dpdk/rte_config.h -I$source_tree/dpdk-rte-kni-#MODULE_VERSION#/ethtool/ixgbe -I$source_tree/dpdk-rte-kni-#MODULE_VERSION#/ethtool/igb -fno-PIE' RTE_KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="source /usr/share/dpdk/dpdk-sdk-env.sh; make clean"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
diff --git a/debian/rules b/debian/rules
index 3ef1c669..7a494468 100755
--- a/debian/rules
+++ b/debian/rules
@@ -91,6 +91,7 @@ endif
KVERS := $(shell perl debian/kernel-version $(KSRC))
export KVERS
+export MODULE_CFLAGS=-fno-PIE
DPDK_CONFIG_BUILD_KMOD=y