mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
kernel: allow fragment re-use from any aware kernel
The kernel fragments contained in this layer could not easily be consumed by any fragment aware kernel not called "linux-yocto". To make them easier to include, we make the bbappend more generic, to match any linux*.bb recipe (note: this means it will match things like linux-atm.bb as well). To avoid adding the fragments to recipes that can't use them, or to a version that hasn't been valided, we use the LINUX_VERSION variable to pull out the major/minor kernel release and then include a specific version of the .inc file. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
324696b9a9
commit
f2f36a8061
10
recipes-kernel/linux/linux-%.bbappend
Normal file
10
recipes-kernel/linux/linux-%.bbappend
Normal file
|
@ -0,0 +1,10 @@
|
|||
# any kernel recipe with fragment support, that sets LINUX_VERSION to one of the tested
|
||||
# values, will get the appropriate fragments included in their SRC_URI
|
||||
|
||||
LINUX_MAJOR = "${@(d.getVar('LINUX_VERSION') or "x.y").split('.')[0]}"
|
||||
LINUX_MINOR = "${@(d.getVar('LINUX_VERSION') or "x.y").split('.')[1]}"
|
||||
|
||||
include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'linux-yocto_${LINUX_MAJOR}.${LINUX_MINOR}_virtualization.inc', '', d)}
|
||||
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'linux-yocto_virtualization.inc', '', d)}
|
|
@ -1 +0,0 @@
|
|||
require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${BPN}_virtualization.inc', '', d)}
|
4
recipes-kernel/linux/linux-yocto_5.2_virtualization.inc
Normal file
4
recipes-kernel/linux/linux-yocto_5.2_virtualization.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
# include the baseline meta virtualization configuration options
|
||||
# after this include, we can do version specific things
|
||||
|
||||
include linux-yocto_virtualization.inc
|
|
@ -1 +0,0 @@
|
|||
require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${BPN}_virtualization.inc', '', d)}
|
4
recipes-kernel/linux/linux-yocto_5.4_virtualization.inc
Normal file
4
recipes-kernel/linux/linux-yocto_5.4_virtualization.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
# include the baseline meta virtualization configuration options
|
||||
# after this include, we can do version specific things
|
||||
|
||||
include linux-yocto_virtualization.inc
|
Loading…
Reference in New Issue
Block a user