blob: 3798ae3db90fb8cd463b3a8c3fbf9ce553c10b26 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001KBRANCH ?= "v6.1/standard/base"
2
3require recipes-kernel/linux/linux-yocto.inc
4
Patrick Williams8e7b46e2023-05-01 14:19:06 -05005# CVE exclusions
Patrick Williams2a254922023-08-11 09:48:11 -05006include recipes-kernel/linux/cve-exclusion.inc
Patrick Williams8e7b46e2023-05-01 14:19:06 -05007include recipes-kernel/linux/cve-exclusion_6.1.inc
8
Andrew Geissler517393d2023-01-13 08:55:19 -06009# board specific branches
10KBRANCH:qemuarm ?= "v6.1/standard/arm-versatile-926ejs"
11KBRANCH:qemuarm64 ?= "v6.1/standard/qemuarm64"
12KBRANCH:qemumips ?= "v6.1/standard/mti-malta32"
13KBRANCH:qemuppc ?= "v6.1/standard/qemuppc"
14KBRANCH:qemuriscv64 ?= "v6.1/standard/base"
15KBRANCH:qemuriscv32 ?= "v6.1/standard/base"
16KBRANCH:qemux86 ?= "v6.1/standard/base"
17KBRANCH:qemux86-64 ?= "v6.1/standard/base"
Patrick Williams864cc432023-02-09 14:54:44 -060018KBRANCH:qemuloongarch64 ?= "v6.1/standard/base"
Andrew Geissler517393d2023-01-13 08:55:19 -060019KBRANCH:qemumips64 ?= "v6.1/standard/mti-malta64"
20
Andrew Geissler5082cc72023-09-11 08:41:39 -040021SRCREV_machine:qemuarm ?= "8c81de99a4b9f69345873b06077f9d4e1321298e"
22SRCREV_machine:qemuarm64 ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
23SRCREV_machine:qemuloongarch64 ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
24SRCREV_machine:qemumips ?= "733cb5842aeac106f5606df4da7c64a180f0c500"
25SRCREV_machine:qemuppc ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
26SRCREV_machine:qemuriscv64 ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
27SRCREV_machine:qemuriscv32 ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
28SRCREV_machine:qemux86 ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
29SRCREV_machine:qemux86-64 ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
30SRCREV_machine:qemumips64 ?= "1c11fe963667e9380725bef0650aeaea8544ea8b"
31SRCREV_machine ?= "526b5bf2f74f881356bce8b44840dc86785fb7bf"
32SRCREV_meta ?= "f845a7f37d7114230d6609e2bd630070f2f6cd9b"
Andrew Geissler517393d2023-01-13 08:55:19 -060033
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.
38BBCLASSEXTEND = "devupstream:target"
Andrew Geissler5082cc72023-09-11 08:41:39 -040039SRCREV_machine:class-devupstream ?= "c2cbfe5f51227dfe6ef7be013f0d56a32c040faa"
Andrew Geissler517393d2023-01-13 08:55:19 -060040PN:class-devupstream = "linux-yocto-upstream"
41KBRANCH:class-devupstream = "v6.1/base"
42
Andrew Geissler028142b2023-05-05 11:29:21 -050043SRC_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.1;destsuffix=${KMETA};protocol=https"
Patrick Williamse760df82023-05-26 11:10:49 -050045SRC_URI += "file://0001-perf-cpumap-Make-counter-as-unsigned-ints.patch"
Andrew Geissler517393d2023-01-13 08:55:19 -060046
47LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
Andrew Geissler5082cc72023-09-11 08:41:39 -040048LINUX_VERSION ?= "6.1.51"
Andrew Geissler517393d2023-01-13 08:55:19 -060049
Andrew Geissler5082cc72023-09-11 08:41:39 -040050PV = "${LINUX_VERSION}+git"
Andrew Geissler517393d2023-01-13 08:55:19 -060051
52KMETA = "kernel-meta"
53KCONF_BSP_AUDIT_LEVEL = "1"
54
55KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"
56
Patrick Williams864cc432023-02-09 14:54:44 -060057COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32|qemuloongarch64)$"
Andrew Geissler517393d2023-01-13 08:55:19 -060058
59# Functionality flags
60KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
61KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
62KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc cfg/net/mdio.scc"
63KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
64KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"
65KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}"
66KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}"
67KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}"
68KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc"
69KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc"
70KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc"
71
72INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel"
73