blob: 2f804d379d6e26a7fc6aeebba87294f9fd5b61b2 [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
Patrick Williams2a254922023-08-11 09:48:11 -050021SRCREV_machine:qemuarm ?= "d6ed8644d9b0767f8f676987a5c4f61173b803a8"
22SRCREV_machine:qemuarm64 ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
23SRCREV_machine:qemuloongarch64 ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
24SRCREV_machine:qemumips ?= "6e0c4ce9fd26b55a23becbddd466d0100b3fc2b0"
25SRCREV_machine:qemuppc ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
26SRCREV_machine:qemuriscv64 ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
27SRCREV_machine:qemuriscv32 ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
28SRCREV_machine:qemux86 ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
29SRCREV_machine:qemux86-64 ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
30SRCREV_machine:qemumips64 ?= "98b8dbe56e119690cdc0af0661867df6c3ee39a2"
31SRCREV_machine ?= "19cd9d8c4bafb673a03b2d7c22407d7c8d192a96"
32SRCREV_meta ?= "9f8ee63473567964331b9465fa1aba301a9a725b"
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"
Patrick Williams2a254922023-08-11 09:48:11 -050039SRCREV_machine:class-devupstream ?= "52a953d0934b17a88f403b4135eb3cdf83d19f91"
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"
Patrick Williams2a254922023-08-11 09:48:11 -050048LINUX_VERSION ?= "6.1.43"
Andrew Geissler517393d2023-01-13 08:55:19 -060049
50PV = "${LINUX_VERSION}+git${SRCPV}"
51
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