]> code.ossystems Code Review - openembedded-core.git/commit
kernel-module-split: Append KERNEL_VERSION string to kernel module name
authorOla Redell <ola.redell@retotech.se>
Fri, 13 Jan 2017 17:22:23 +0000 (18:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jan 2017 22:45:42 +0000 (22:45 +0000)
commit78cde87bb6e71ec5b603426879267874900d09f3
tree191838ef4aa2c1ad0cc1c58a807aebeb2747045c
parent8d72bea03b3db1ddece309d1bab80f9e4c4c2d33
kernel-module-split: Append KERNEL_VERSION string to kernel module name

The KERNEL_VERSION string is added to kernel module package names in order
to make the kernel modules for different kernel versions distinct packages
instead of different versions of the same package. With this change, when
a new kernel is installed together with its kernel modules (e.g. by upgrade
of the packages kernel and kernel-modules) using some package manager such
as apt-get or rpm, the kernel modules for the older kernel will not be
removed. This enables a fall back to the older kernel if the new one fails.

Also, for backwards compatibility and to enable kernel version agnostic
dependencies to kernel modules, create a virtual package with the old
(shorter) kernel module package name using RPROVIDES.

Signed-off-by: Ola Redell <ola.redell@retotech.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-module-split.bbclass