diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-01-01 23:31:04 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-04 23:47:50 +0000 |
commit | df9eb69f3e4b9847573635522364bf7265718f76 (patch) | |
tree | c30ce74162a0b0a08ea560dc4ba7059ffdb587dc /meta/recipes-kernel/linux | |
parent | b0e66c9acf2ba3c1e0ffd4bb599940679332e5f9 (diff) | |
download | poky-df9eb69f3e4b9847573635522364bf7265718f76.tar.gz |
linux-yocto: introduce 6.6 reference kernel
Adding the linux-yocto recipes for the 6.6 reference kernel. This
is a -lts upstream release and will be supported for the same
duration as upstream.
(From OE-Core rev: d341b4b176f72d4214714ffc7a7a5fc337eb321c)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux')
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb | 48 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-tiny_6.6.bb | 33 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_6.6.bb | 72 |
3 files changed, 153 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb b/meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb new file mode 100644 index 0000000000..0c0ce6afea --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | KBRANCH ?= "v6.6/standard/preempt-rt/base" | ||
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | |||
5 | # CVE exclusions | ||
6 | include recipes-kernel/linux/cve-exclusion_6.5.inc | ||
7 | |||
8 | # Skip processing of this recipe if it is not explicitly specified as the | ||
9 | # PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying | ||
10 | # to build multiple virtual/kernel providers, e.g. as dependency of | ||
11 | # core-image-rt-sdk, core-image-rt. | ||
12 | python () { | ||
13 | if d.getVar("KERNEL_PACKAGE_NAME") == "kernel" and d.getVar("PREFERRED_PROVIDER_virtual/kernel") != "linux-yocto-rt": | ||
14 | raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") | ||
15 | } | ||
16 | |||
17 | SRCREV_machine ?= "bce0cb6bbe24682d839c3e212270e3744e32aabe" | ||
18 | SRCREV_meta ?= "8ab17895c185426442d80a60829619270f9ac51d" | ||
19 | |||
20 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ | ||
21 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.5;destsuffix=${KMETA};protocol=https" | ||
22 | |||
23 | LINUX_VERSION ?= "6.6.6" | ||
24 | |||
25 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
26 | |||
27 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
28 | DEPENDS += "openssl-native util-linux-native" | ||
29 | |||
30 | PV = "${LINUX_VERSION}+git" | ||
31 | |||
32 | KMETA = "kernel-meta" | ||
33 | KCONF_BSP_AUDIT_LEVEL = "1" | ||
34 | |||
35 | LINUX_KERNEL_TYPE = "preempt-rt" | ||
36 | |||
37 | COMPATIBLE_MACHINE = "^(qemux86|qemux86-64|qemuarm|qemuarmv5|qemuarm64|qemuppc|qemumips)$" | ||
38 | |||
39 | KERNEL_DEVICETREE:qemuarmv5 = "arm/versatile-pb.dtb" | ||
40 | |||
41 | # Functionality flags | ||
42 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc" | ||
43 | KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" | ||
44 | KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc" | ||
45 | KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
46 | KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
47 | KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" | ||
48 | KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}" | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_6.6.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_6.6.bb new file mode 100644 index 0000000000..edb8001069 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_6.6.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | KBRANCH ?= "v6.6/standard/tiny/base" | ||
2 | |||
3 | LINUX_KERNEL_TYPE = "tiny" | ||
4 | KCONFIG_MODE = "--allnoconfig" | ||
5 | |||
6 | require recipes-kernel/linux/linux-yocto.inc | ||
7 | |||
8 | # CVE exclusions | ||
9 | include recipes-kernel/linux/cve-exclusion_6.6.inc | ||
10 | |||
11 | LINUX_VERSION ?= "6.6.6" | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
13 | |||
14 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
15 | DEPENDS += "openssl-native util-linux-native" | ||
16 | |||
17 | KMETA = "kernel-meta" | ||
18 | KCONF_BSP_AUDIT_LEVEL = "2" | ||
19 | |||
20 | SRCREV_machine ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
21 | SRCREV_meta ?= "8ab17895c185426442d80a60829619270f9ac51d" | ||
22 | |||
23 | PV = "${LINUX_VERSION}+git" | ||
24 | |||
25 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ | ||
26 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https" | ||
27 | |||
28 | COMPATIBLE_MACHINE = "^(qemux86|qemux86-64|qemuarm64|qemuarm|qemuarmv5)$" | ||
29 | |||
30 | # Functionality flags | ||
31 | KERNEL_FEATURES = "" | ||
32 | |||
33 | KERNEL_DEVICETREE:qemuarmv5 = "arm/versatile-pb.dtb" | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.6.bb b/meta/recipes-kernel/linux/linux-yocto_6.6.bb new file mode 100644 index 0000000000..4fa6c505f5 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto_6.6.bb | |||
@@ -0,0 +1,72 @@ | |||
1 | KBRANCH ?= "v6.6/standard/base" | ||
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | |||
5 | # CVE exclusions | ||
6 | include recipes-kernel/linux/cve-exclusion.inc | ||
7 | include recipes-kernel/linux/cve-exclusion_6.6.inc | ||
8 | |||
9 | # board specific branches | ||
10 | KBRANCH:qemuarm ?= "v6.6/standard/arm-versatile-926ejs" | ||
11 | KBRANCH:qemuarm64 ?= "v6.6/standard/qemuarm64" | ||
12 | KBRANCH:qemumips ?= "v6.6/standard/mti-malta32" | ||
13 | KBRANCH:qemuppc ?= "v6.6/standard/qemuppc" | ||
14 | KBRANCH:qemuriscv64 ?= "v6.6/standard/base" | ||
15 | KBRANCH:qemuriscv32 ?= "v6.6/standard/base" | ||
16 | KBRANCH:qemux86 ?= "v6.6/standard/base" | ||
17 | KBRANCH:qemux86-64 ?= "v6.6/standard/base" | ||
18 | KBRANCH:qemuloongarch64 ?= "v6.6/standard/base" | ||
19 | KBRANCH:qemumips64 ?= "v6.6/standard/mti-malta64" | ||
20 | |||
21 | SRCREV_machine:qemuarm ?= "8a23d09163eedc42ed63f2741ae2fa7d8aa926aa" | ||
22 | SRCREV_machine:qemuarm64 ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
23 | SRCREV_machine:qemuloongarch64 ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
24 | SRCREV_machine:qemumips ?= "a0a00df5c1cd3cdd346f410f71998a120e284f78" | ||
25 | SRCREV_machine:qemuppc ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
26 | SRCREV_machine:qemuriscv64 ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
27 | SRCREV_machine:qemuriscv32 ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
28 | SRCREV_machine:qemux86 ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
29 | SRCREV_machine:qemux86-64 ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
30 | SRCREV_machine:qemumips64 ?= "971214747a173452ae3ab4c6dcf1d91451b6e9be" | ||
31 | SRCREV_machine ?= "09118b4441395fadf233eec03e2b68e7d6d63cdd" | ||
32 | SRCREV_meta ?= "8ab17895c185426442d80a60829619270f9ac51d" | ||
33 | |||
34 | # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll | ||
35 | # get the <version>/base branch, which is pure upstream -stable, and the same | ||
36 | # meta SRCREV as the linux-yocto-standard builds. Select your version using the | ||
37 | # normal PREFERRED_VERSION settings. | ||
38 | BBCLASSEXTEND = "devupstream:target" | ||
39 | SRCREV_machine:class-devupstream ?= "a06ca85b22f6c7f4e6dd1447ca50ded6f54ebb5e" | ||
40 | PN:class-devupstream = "linux-yocto-upstream" | ||
41 | KBRANCH:class-devupstream = "v6.6/base" | ||
42 | |||
43 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \ | ||
44 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https" | ||
45 | |||
46 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
47 | LINUX_VERSION ?= "6.6.6" | ||
48 | |||
49 | PV = "${LINUX_VERSION}+git" | ||
50 | |||
51 | KMETA = "kernel-meta" | ||
52 | KCONF_BSP_AUDIT_LEVEL = "1" | ||
53 | |||
54 | KERNEL_DEVICETREE:qemuarmv5 = "arm/versatile-pb.dtb" | ||
55 | |||
56 | COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32|qemuloongarch64)$" | ||
57 | |||
58 | # Functionality flags | ||
59 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" | ||
60 | KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" | ||
61 | KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc cfg/net/mdio.scc" | ||
62 | KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
63 | KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
64 | KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}" | ||
65 | KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" | ||
66 | KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}" | ||
67 | KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc" | ||
68 | KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc" | ||
69 | KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc" | ||
70 | |||
71 | INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel" | ||
72 | |||