blob: f004339749382fe7de41f30edac2353cbf27b277 [file] [log] [blame]
Andrew Geissler220dafd2023-10-04 10:18:08 -05001KBRANCH ?= "v6.5/standard/preempt-rt/base"
2
3require recipes-kernel/linux/linux-yocto.inc
4
5# CVE exclusions
6include 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.
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 Williamsac13d5f2023-11-24 18:59:46 -060017SRCREV_machine ?= "833c5da68398da64271c26188b9e15286e8e725c"
18SRCREV_meta ?= "e4aaaaddfaf695039a7fc41815e24f57c29e30c0"
Andrew Geissler220dafd2023-10-04 10:18:08 -050019
20SRC_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
Patrick Williamsac13d5f2023-11-24 18:59:46 -060023LINUX_VERSION ?= "6.5.10"
Andrew Geissler220dafd2023-10-04 10:18:08 -050024
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"
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
Patrick Williamsac13d5f2023-11-24 18:59:46 -060039KERNEL_DEVICETREE:qemuarmv5 = "arm/versatile-pb.dtb"
Andrew Geissler220dafd2023-10-04 10:18:08 -050040
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)}"