[OE-core] [PATCH v2 0/3] ipk/deb/rpm: add kernel version to its dependencies

Ovidiu-Adrian Vancea ovidiu.vancea at ni.com
Wed Jun 8 16:08:31 UTC 2016


Updating the kernel (for all package managers) does not update the dependencies
(eg. modules) because there is no possibility to do version enforcement in the
OE recipe. Upon rebooting, the older version modules do not load and can leave
hardware in a non-functioning state (if their drivers are not built into the
kernel).

Use the Version field from the kernel package on its rdepends, rrecommends, and
rsuggests fields’ version. This makes the packages on which the kernel depends
to be the same version as the kernel. Version field contains package build
number (including git hash) and package revision, thus restricting the kernel
and modules to always be built together.

The current and default behavior will not change unless the variable 
"VERSION_KERNEL_MODULES = 1" is defined in the kernel recipe.

Ovidiu-Adrian Vancea (3):
  package_ipk.bbclass: add kernel version to its dependencies
  package_deb.bbclass: add kernel version to its dependencies
  package_rpm.bbclass: add kernel version to its dependencies

 meta/classes/package_deb.bbclass | 10 ++++++++++
 meta/classes/package_ipk.bbclass |  9 +++++++++
 meta/classes/package_rpm.bbclass | 21 +++++++++++++++++++++
 3 files changed, 40 insertions(+)

-- 
2.7.4




More information about the Openembedded-core mailing list