summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-yocto_6.10_virtualization.inc (renamed from recipes-kernel/linux/linux-yocto_6.6_virtualization.inc)0
-rw-r--r--recipes-kernel/linux/linux-yocto_6.12_virtualization.inc4
-rw-r--r--recipes-kernel/linux/linux-yocto_virtualization.inc26
-rw-r--r--recipes-kernel/linux/yocto-cfg-fragments-6.10.bb (renamed from recipes-kernel/linux/yocto-cfg-fragments.bb)4
-rw-r--r--recipes-kernel/linux/yocto-cfg-fragments-6.12.bb37
-rw-r--r--recipes-kernel/lopper/lopper_git.bb2
6 files changed, 67 insertions, 6 deletions
diff --git a/recipes-kernel/linux/linux-yocto_6.6_virtualization.inc b/recipes-kernel/linux/linux-yocto_6.10_virtualization.inc
index 59311487..59311487 100644
--- a/recipes-kernel/linux/linux-yocto_6.6_virtualization.inc
+++ b/recipes-kernel/linux/linux-yocto_6.10_virtualization.inc
diff --git a/recipes-kernel/linux/linux-yocto_6.12_virtualization.inc b/recipes-kernel/linux/linux-yocto_6.12_virtualization.inc
new file mode 100644
index 00000000..59311487
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto_6.12_virtualization.inc
@@ -0,0 +1,4 @@
1# include the baseline meta virtualization configuration options
2# after this include, we can do version specific things
3
4include linux-yocto_virtualization.inc
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc
index 9a6554d1..bc2f4040 100644
--- a/recipes-kernel/linux/linux-yocto_virtualization.inc
+++ b/recipes-kernel/linux/linux-yocto_virtualization.inc
@@ -21,18 +21,30 @@ def kernel_cache_cond_feature(src_uri,feature):
21 if kernel_cache: 21 if kernel_cache:
22 return feature 22 return feature
23 23
24 return "../recipe-sysroot-native/kcfg/" + feature 24 return "../../recipe-sysroot-native/kcfg/" + feature
25 25
26# no conditional, just use the yocto-kernel-cache addition, yes 26# no conditional, just use the yocto-kernel-cache addition, yes
27# the src_uri isn't used, but we may need to check it in the future 27# the src_uri isn't used, but we may need to check it in the future
28def kernel_cache_feature(src_uri,feature): 28def kernel_cache_feature(src_uri,feature):
29 return "../recipe-sysroot-native/kcfg/" + feature 29 return "../../recipe-sysroot-native/kcfg/" + feature
30 30
31def distro_cond_feature(feature_fragment,distro_feature,d): 31def distro_cond_feature(feature_fragment,distro_feature,d):
32 import bb 32 import bb
33 feat = kernel_cache_feature("",feature_fragment) 33 feat = kernel_cache_feature("",feature_fragment)
34 return bb.utils.contains('DISTRO_FEATURES', distro_feature, ' ' + feat, ' ', d) 34 return bb.utils.contains('DISTRO_FEATURES', distro_feature, ' ' + feat, ' ', d)
35 35
36# kept as a reference if we go back to a dynamically calculated
37# fragment dependency.
38def kernel_meta_ver_depends(d):
39 yocto_enabled = bb.data.inherits_class('kernel-yocto', d)
40 if yocto_enabled:
41 pv = oe.utils.trim_version(d.getVar('PV'), 2)
42 return "yocto-cfg-fragments-%s-native:do_populate_sysroot" % pv
43 else:
44 return ""
45
46KERNEL_CFG_DEPENDS ?= "${@['', 'yocto-cfg-fragments-${LINUX_MAJOR}.${LINUX_MINOR}-native:do_populate_sysroot'][(bb.data.inherits_class('kernel-yocto', d))]}"
47
36KERNEL_CACHE_FEATURES ?= "${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/virtio.scc')} \ 48KERNEL_CACHE_FEATURES ?= "${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/virtio.scc')} \
37 ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/xt-checksum.scc')} \ 49 ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/xt-checksum.scc')} \
38 ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/vswitch.scc')} \ 50 ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/vswitch.scc')} \
@@ -47,7 +59,13 @@ KERNEL_FEATURES:append = " ${KERNEL_CACHE_FEATURES}"
47# fragment merging suport at the moment, then add a dependency on the 59# fragment merging suport at the moment, then add a dependency on the
48# configuration fragment repository. This allows us to be sure that our 60# configuration fragment repository. This allows us to be sure that our
49# features can be enabled via the fragments 61# features can be enabled via the fragments
50do_kernel_metadata[depends] += "${@['', 'yocto-cfg-fragments-native:do_populate_sysroot'][(bb.data.inherits_class('kernel-yocto', d))]}" 62do_kernel_metadata[depends] += "${KERNEL_CFG_DEPENDS}"
63
64# if externalsrc is enabled, do_kernel_metadata dependency on
65# yocto-cfg-fragments-native won't be run to populate
66# recipe-sysroot-native/kcfg because do_patch is not run. Manully add
67# the dependency to do_kernel_configme for this special case
68do_kernel_configme[depends] += "${@['', d.getVar('PN') + ':do_kernel_metadata'][(bb.data.inherits_class('externalsrc', d))]}"
51 69
52# xen kernel support 70# xen kernel support
53# SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" 71# SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
@@ -59,3 +77,5 @@ KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/xen.scc', 'xen', d )}"
59KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/kubernetes.scc', 'k8s', d )}" 77KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/kubernetes.scc', 'k8s', d )}"
60KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/kubernetes.scc', 'k3s', d )}" 78KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/kubernetes.scc', 'k3s', d )}"
61 79
80# selinux
81KERNEL_FEATURES:append = "${@distro_cond_feature('cgl/features/selinux/selinux.cfg', 'selinux', d )}"
diff --git a/recipes-kernel/linux/yocto-cfg-fragments.bb b/recipes-kernel/linux/yocto-cfg-fragments-6.10.bb
index e6815715..ae3c3c15 100644
--- a/recipes-kernel/linux/yocto-cfg-fragments.bb
+++ b/recipes-kernel/linux/yocto-cfg-fragments-6.10.bb
@@ -12,10 +12,10 @@ do_configure[noexec] = "1"
12do_compile[noexec] = "1" 12do_compile[noexec] = "1"
13INHIBIT_DEFAULT_DEPS = "1" 13INHIBIT_DEFAULT_DEPS = "1"
14 14
15LINUX_VERSION ?= "6.6" 15LINUX_VERSION ?= "6.10"
16PV = "v${LINUX_VERSION}+git${SRCREV}" 16PV = "v${LINUX_VERSION}+git${SRCREV}"
17 17
18SRCREV = "eb283ea577df80542d48f0c498365960b4c4ecd9" 18SRCREV = "8650ed99a9e181fbb5a0e3718809f734564ea91f"
19SRC_URI = "\ 19SRC_URI = "\
20 git://git.yoctoproject.org/yocto-kernel-cache;branch=yocto-${LINUX_VERSION} \ 20 git://git.yoctoproject.org/yocto-kernel-cache;branch=yocto-${LINUX_VERSION} \
21 " 21 "
diff --git a/recipes-kernel/linux/yocto-cfg-fragments-6.12.bb b/recipes-kernel/linux/yocto-cfg-fragments-6.12.bb
new file mode 100644
index 00000000..bffdca5c
--- /dev/null
+++ b/recipes-kernel/linux/yocto-cfg-fragments-6.12.bb
@@ -0,0 +1,37 @@
1HOMEPAGE = "https://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/"
2SUMMARY = "Kernel configuration fragments"
3DESCRIPTION = "Typically used as part of a kernel clone, this is the standalone \
4fragment repository. Making it available to other fragment management schemes \
5"
6SECTION = "devel"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
10
11do_configure[noexec] = "1"
12do_compile[noexec] = "1"
13INHIBIT_DEFAULT_DEPS = "1"
14
15LINUX_VERSION ?= "6.12"
16PV = "v${LINUX_VERSION}+git${SRCREV}"
17
18SRCREV = "722f1da424c10f7a7cd02646657bbc56b86c2c7b"
19SRC_URI = "\
20 git://git.yoctoproject.org/yocto-kernel-cache;branch=yocto-${LINUX_VERSION} \
21 "
22
23S = "${WORKDIR}/git"
24
25do_install() {
26 install -d ${D}${base_prefix}/kcfg
27
28 # copy the configuration fragments over to the native deploy
29 cp -r ${S}/* ${D}${base_prefix}/kcfg
30 # scripts bring in a bash dependency we don't want
31 rm -rf ${D}${base_prefix}/kcfg/scripts
32}
33
34FILES:${PN} += "kcfg/"
35SYSROOT_DIRS += "${base_prefix}/kcfg"
36BBCLASSEXTEND = "native nativesdk"
37
diff --git a/recipes-kernel/lopper/lopper_git.bb b/recipes-kernel/lopper/lopper_git.bb
index 5e2ca69a..2d1550d7 100644
--- a/recipes-kernel/lopper/lopper_git.bb
+++ b/recipes-kernel/lopper/lopper_git.bb
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause"
4SECTION = "bootloader" 4SECTION = "bootloader"
5 5
6SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master;protocol=https" 6SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master;protocol=https"
7SRCREV = "9159040dab25e2f1e7b447fcbfcd5397b1d618e8" 7SRCREV = "bd7deb3a6e491fe01b4dacc676aa21b1f129d03c"
8S = "${WORKDIR}/git" 8S = "${WORKDIR}/git"
9 9
10BASEVERSION = "1.0.2" 10BASEVERSION = "1.0.2"