blob: 54ead24dedd363a8f01ee22b11863b7ea6039a43 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001KBRANCH ?= "v6.1/standard/preempt-rt/base"
2
3require recipes-kernel/linux/linux-yocto.inc
4
Patrick Williams8e7b46e2023-05-01 14:19:06 -05005# CVE exclusions
6include recipes-kernel/linux/cve-exclusion_6.1.inc
7
Andrew Geissler517393d2023-01-13 08:55:19 -06008# 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.
12python () {
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
Patrick Williams520786c2023-06-25 16:20:36 -050017SRCREV_machine ?= "6f370bf9127713eccdfb3cf009c46ef4852aec28"
18SRCREV_meta ?= "b358c237cf493dcf5af1760fc4632ede32e1ff2e"
Andrew Geissler517393d2023-01-13 08:55:19 -060019
Andrew Geissler028142b2023-05-05 11:29:21 -050020SRC_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.1;destsuffix=${KMETA};protocol=https"
Andrew Geissler517393d2023-01-13 08:55:19 -060022
Patrick Williams520786c2023-06-25 16:20:36 -050023LINUX_VERSION ?= "6.1.35"
Andrew Geissler517393d2023-01-13 08:55:19 -060024
25LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
26
27DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
28DEPENDS += "openssl-native util-linux-native"
29
30PV = "${LINUX_VERSION}+git${SRCPV}"
31
32KMETA = "kernel-meta"
33KCONF_BSP_AUDIT_LEVEL = "1"
34
35LINUX_KERNEL_TYPE = "preempt-rt"
36
37COMPATIBLE_MACHINE = "^(qemux86|qemux86-64|qemuarm|qemuarmv5|qemuarm64|qemuppc|qemumips)$"
38
39KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"
40
41# Functionality flags
42KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
43KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
44KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc"
45KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
46KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"
47KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}"
48KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}"