diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2016-11-10 16:05:50 +0000 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2016-11-10 16:08:37 +0000 |
commit | 1dda674f3ed515ca67c4a833fbbdb8d01b0db93a (patch) | |
tree | b91cedb7c305002ae4a48a042d276387ad71ca68 | |
parent | 17c7fb6c69e82253a0d58f5bd20b1dabe377c4e1 (diff) |
DKMS: build against the requested kernel
Currently DKMS builds the modules against the running kernel.
Pass RTE_KERNELDIR to the make call, using the DKMS-provided
${kernelver} variable.
Change-Id: I33b1d06b6f862fa9dd58a2a96898621ed547e3ba
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
-rw-r--r-- | debian/dpdk-igb-uio-dkms.dkms | 2 | ||||
-rw-r--r-- | debian/dpdk-rte-kni-dkms.dkms | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/dpdk-igb-uio-dkms.dkms b/debian/dpdk-igb-uio-dkms.dkms index 10dfecc7..5c7d1925 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'" +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" 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 efccf1fb..800e5805 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'" +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" CLEAN="source /usr/share/dpdk/dpdk-sdk-env.sh; make clean" DEST_MODULE_LOCATION[0]="/updates/dkms" AUTOINSTALL="YES" |