diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-01-08 19:38:53 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-09 14:20:14 +0000 |
commit | ca7096f88cc333b5f13e9cd1c0f1a92f3ddf5dd1 (patch) | |
tree | e1bebe07f3a8713f3b7a6fc323fb734a386d5ab3 | |
parent | cb31ddf4d8e7a7c0f1880a201c71f2ff888f630b (diff) | |
download | poky-ca7096f88cc333b5f13e9cd1c0f1a92f3ddf5dd1.tar.gz |
linux-yocto: introduce v6.1 reference kernel recipes
6.1 is a LTS kernel, and our next reference kernel. Some new
features like rust support are not directly used, but will
be available to start testing.
(From OE-Core rev: 1a450283c85f7bbadcbbb8973d3c3d15a712abb3)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb | 45 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb | 30 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_6.1.bb | 70 |
3 files changed, 145 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb b/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb new file mode 100644 index 0000000000..3bcd2e516b --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-rt_6.1.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | KBRANCH ?= "v6.1/standard/preempt-rt/base" | ||
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | |||
5 | # Skip processing of this recipe if it is not explicitly specified as the | ||
6 | # PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying | ||
7 | # to build multiple virtual/kernel providers, e.g. as dependency of | ||
8 | # core-image-rt-sdk, core-image-rt. | ||
9 | python () { | ||
10 | if d.getVar("KERNEL_PACKAGE_NAME") == "kernel" and d.getVar("PREFERRED_PROVIDER_virtual/kernel") != "linux-yocto-rt": | ||
11 | raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") | ||
12 | } | ||
13 | |||
14 | SRCREV_machine ?= "3c497011beb11a43a38acc273366ce0997bc10db" | ||
15 | SRCREV_meta ?= "d2ea5dce4e8398b85b226c9b0f303584de8d9f30" | ||
16 | |||
17 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ | ||
18 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=${KMETA}" | ||
19 | |||
20 | LINUX_VERSION ?= "6.1" | ||
21 | |||
22 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
23 | |||
24 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
25 | DEPENDS += "openssl-native util-linux-native" | ||
26 | |||
27 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
28 | |||
29 | KMETA = "kernel-meta" | ||
30 | KCONF_BSP_AUDIT_LEVEL = "1" | ||
31 | |||
32 | LINUX_KERNEL_TYPE = "preempt-rt" | ||
33 | |||
34 | COMPATIBLE_MACHINE = "^(qemux86|qemux86-64|qemuarm|qemuarmv5|qemuarm64|qemuppc|qemumips)$" | ||
35 | |||
36 | KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb" | ||
37 | |||
38 | # Functionality flags | ||
39 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc" | ||
40 | KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" | ||
41 | KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc" | ||
42 | KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
43 | KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
44 | KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" | ||
45 | 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.1.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb new file mode 100644 index 0000000000..32ec91dac8 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_6.1.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | KBRANCH ?= "v6.1/standard/tiny/base" | ||
2 | |||
3 | LINUX_KERNEL_TYPE = "tiny" | ||
4 | KCONFIG_MODE = "--allnoconfig" | ||
5 | |||
6 | require recipes-kernel/linux/linux-yocto.inc | ||
7 | |||
8 | LINUX_VERSION ?= "6.1" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
10 | |||
11 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
12 | DEPENDS += "openssl-native util-linux-native" | ||
13 | |||
14 | KMETA = "kernel-meta" | ||
15 | KCONF_BSP_AUDIT_LEVEL = "2" | ||
16 | |||
17 | SRCREV_machine ?= "6b919643ad199903450791493de5791556c032b7" | ||
18 | SRCREV_meta ?= "d2ea5dce4e8398b85b226c9b0f303584de8d9f30" | ||
19 | |||
20 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
21 | |||
22 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ | ||
23 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=${KMETA}" | ||
24 | |||
25 | COMPATIBLE_MACHINE = "^(qemux86|qemux86-64|qemuarm64|qemuarm|qemuarmv5)$" | ||
26 | |||
27 | # Functionality flags | ||
28 | KERNEL_FEATURES = "" | ||
29 | |||
30 | KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb" | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.1.bb b/meta/recipes-kernel/linux/linux-yocto_6.1.bb new file mode 100644 index 0000000000..6aab5982b5 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto_6.1.bb | |||
@@ -0,0 +1,70 @@ | |||
1 | KBRANCH ?= "v6.1/standard/base" | ||
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | |||
5 | # board specific branches | ||
6 | KBRANCH:qemuarm ?= "v6.1/standard/arm-versatile-926ejs" | ||
7 | KBRANCH:qemuarm64 ?= "v6.1/standard/qemuarm64" | ||
8 | KBRANCH:qemumips ?= "v6.1/standard/mti-malta32" | ||
9 | KBRANCH:qemuppc ?= "v6.1/standard/qemuppc" | ||
10 | KBRANCH:qemuriscv64 ?= "v6.1/standard/base" | ||
11 | KBRANCH:qemuriscv32 ?= "v6.1/standard/base" | ||
12 | KBRANCH:qemux86 ?= "v6.1/standard/base" | ||
13 | KBRANCH:qemux86-64 ?= "v6.1/standard/base" | ||
14 | KBRANCH:qemumips64 ?= "v6.1/standard/mti-malta64" | ||
15 | |||
16 | SRCREV_machine:qemuarm ?= "09521916385d581a8ee0517f8279d28303f22d32" | ||
17 | SRCREV_machine:qemuarm64 ?= "6b919643ad199903450791493de5791556c032b7" | ||
18 | SRCREV_machine:qemumips ?= "0a86f820b067832e72b291c2310b0808618f66a6" | ||
19 | SRCREV_machine:qemuppc ?= "6b919643ad199903450791493de5791556c032b7" | ||
20 | SRCREV_machine:qemuriscv64 ?= "6b919643ad199903450791493de5791556c032b7" | ||
21 | SRCREV_machine:qemuriscv32 ?= "6b919643ad199903450791493de5791556c032b7" | ||
22 | SRCREV_machine:qemux86 ?= "6b919643ad199903450791493de5791556c032b7" | ||
23 | SRCREV_machine:qemux86-64 ?= "6b919643ad199903450791493de5791556c032b7" | ||
24 | SRCREV_machine:qemumips64 ?= "99437d8498c3e175f7e0f666e8a42fc942c65262" | ||
25 | SRCREV_machine ?= "6b919643ad199903450791493de5791556c032b7" | ||
26 | SRCREV_meta ?= "d2ea5dce4e8398b85b226c9b0f303584de8d9f30" | ||
27 | |||
28 | # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll | ||
29 | # get the <version>/base branch, which is pure upstream -stable, and the same | ||
30 | # meta SRCREV as the linux-yocto-standard builds. Select your version using the | ||
31 | # normal PREFERRED_VERSION settings. | ||
32 | BBCLASSEXTEND = "devupstream:target" | ||
33 | SRCREV_machine:class-devupstream ?= "094226ad94f471a9f19e8f8e7140a09c2625abaa" | ||
34 | PN:class-devupstream = "linux-yocto-upstream" | ||
35 | KBRANCH:class-devupstream = "v6.1/base" | ||
36 | |||
37 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \ | ||
38 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=${KMETA}" | ||
39 | |||
40 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
41 | LINUX_VERSION ?= "6.1" | ||
42 | |||
43 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
44 | DEPENDS += "openssl-native util-linux-native" | ||
45 | DEPENDS += "gmp-native libmpc-native" | ||
46 | |||
47 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
48 | |||
49 | KMETA = "kernel-meta" | ||
50 | KCONF_BSP_AUDIT_LEVEL = "1" | ||
51 | |||
52 | KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb" | ||
53 | |||
54 | COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32)$" | ||
55 | |||
56 | # Functionality flags | ||
57 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" | ||
58 | KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" | ||
59 | KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc cfg/net/mdio.scc" | ||
60 | KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
61 | KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
62 | KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}" | ||
63 | KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" | ||
64 | KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}" | ||
65 | KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc" | ||
66 | KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc" | ||
67 | KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc" | ||
68 | |||
69 | INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel" | ||
70 | |||