From: Alexander Sverdlin <[email protected]>

There are use cases for type=kmeta in kernel-yocto.bbclass-derived SRC_URI
which do not point to git://git.yoctoproject.org/yocto-kernel-cache but to
file:// local storage containing just some .scc files. It's not obvious
that they shall pull in the whole automatic kernel configuration of
meta-virtualization. Make this behaviour configurable by allowing
KERNEL_META_TYPE to be defined in local.conf or distro config.
---
 recipes-kernel/linux/linux-%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-%.bbappend 
b/recipes-kernel/linux/linux-%.bbappend
index 5f31578..c2fc91c 100644
--- a/recipes-kernel/linux/linux-%.bbappend
+++ b/recipes-kernel/linux/linux-%.bbappend
@@ -5,6 +5,6 @@ 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 = "${@'yocto' if d.getVar('SRC_URI').find('type=kmeta') > 0 
else 'none'}"
+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)}
-- 
2.41.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8424): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8424
Mute This Topic: https://lists.yoctoproject.org/mt/102416724/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to