Public bug reported:

The DPDK build system uses the RTE_KERNELDIR make variable to determine
which kernel version to build for.  DKMS provides the kernel version to
build for in the $kernelver and $kernel_source_dir variables.  Because
you use a custom MAKE command, this must be used in the MAKE variable of
dkms.conf to generate the correct RTE_KERNELDIR for the build, by doing
something like this:

--- /usr/src/dpdk-rte-kni-16.07.2/dkms.conf     2017-05-01 18:23:13.242496251 
-0400
+++ /usr/src/dpdk-rte-kni-16.07.2/dkms.conf.new 2017-05-01 18:23:20.638620058 
-0400
@@ -1,7 +1,7 @@
 PACKAGE_NAME="dpdk-rte-kni"
 PACKAGE_VERSION="16.07.2"
 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-16.07.2/ethtool/ixgbe 
-I$source_tree/dpdk-rte-kni-16.07.2/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-16.07.2/ethtool/ixgbe 
-I$source_tree/dpdk-rte-kni-16.07.2/ethtool/igb' 
RTE_KERNELDIR=$kernel_source_dir"
 CLEAN="source /usr/share/dpdk/dpdk-sdk-env.sh; make clean"
 DEST_MODULE_LOCATION[0]="/updates/dkms"
 AUTOINSTALL="YES"

Because this is not done, whenever the kernel package is upgraded and
DKMS triggers a rebuild, it will trigger a rebuild for the *running*
kernel which gets installed into the *newly installed* kernel directory,
which is wrong and causes the module to fail to load when the newly
installed kernel is booted.

** Affects: dpdk (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1687492

Title:
  DPDK dkms packages build for wrong kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1687492/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to