Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ipk/deb/rpm: add kernel version to its dependencies
@ 2016-06-08 16:08 Ovidiu-Adrian Vancea
  2016-06-08 16:08 ` [PATCH v2 1/3] package_ipk.bbclass: " Ovidiu-Adrian Vancea
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ovidiu-Adrian Vancea @ 2016-06-08 16:08 UTC (permalink / raw)
  To: openembedded-core

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-09 15:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-08 16:08 [PATCH v2 0/3] ipk/deb/rpm: add kernel version to its dependencies Ovidiu-Adrian Vancea
2016-06-08 16:08 ` [PATCH v2 1/3] package_ipk.bbclass: " Ovidiu-Adrian Vancea
2016-06-08 16:08 ` [PATCH v2 2/3] package_deb.bbclass: " Ovidiu-Adrian Vancea
2016-06-08 16:08 ` [PATCH v2 3/3] package_rpm.bbclass: " Ovidiu-Adrian Vancea
2016-06-08 16:59 ` [PATCH v2 0/3] ipk/deb/rpm: " Richard Purdie
2016-06-09 14:47   ` Ovidiu-Adrian Vancea
2016-06-09 15:23     ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox