mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-05 05:15:25 +02:00
kernel: fix conditional application of fragments
using bb.utils.contains wasn't able to match on the substring "type=kmeta" to enable the conditional inclusion of fragments and KERNEL_FEATURES. We switch to a python string only method so we can fix the fragment application Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
96c644f896
commit
5be8686e65
|
@ -4,9 +4,7 @@
|
|||
LINUX_MAJOR = "${@(d.getVar('LINUX_VERSION') or "x.y").split('.')[0]}"
|
||||
LINUX_MINOR = "${@(d.getVar('LINUX_VERSION') or "x.y").split('.')[1]}"
|
||||
|
||||
KERNEL_META_TYPE ?= "${@bb.utils.contains('SRC_URI', 'type=kmeta', 'yocto', '', d)}"
|
||||
|
||||
KERNEL_META_TYPE = "${@'yocto' if d.getVar('SRC_URI').find('type=kmeta') > 0 else 'none'}"
|
||||
|
||||
include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'linux-${KERNEL_META_TYPE}_${LINUX_MAJOR}.${LINUX_MINOR}_virtualization.inc', '', d)}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user