Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 1 | KBRANCH ?= "v6.5/standard/preempt-rt/base" |
| 2 | |
| 3 | require recipes-kernel/linux/linux-yocto.inc |
| 4 | |
| 5 | # CVE exclusions |
| 6 | include 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. |
| 12 | python () { |
| 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 Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 17 | SRCREV_machine ?= "833c5da68398da64271c26188b9e15286e8e725c" |
| 18 | SRCREV_meta ?= "e4aaaaddfaf695039a7fc41815e24f57c29e30c0" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 19 | |
| 20 | SRC_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 Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 23 | LINUX_VERSION ?= "6.5.10" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 24 | |
| 25 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
| 26 | |
| 27 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" |
| 28 | DEPENDS += "openssl-native util-linux-native" |
| 29 | |
| 30 | PV = "${LINUX_VERSION}+git" |
| 31 | |
| 32 | KMETA = "kernel-meta" |
| 33 | KCONF_BSP_AUDIT_LEVEL = "1" |
| 34 | |
| 35 | LINUX_KERNEL_TYPE = "preempt-rt" |
| 36 | |
| 37 | COMPATIBLE_MACHINE = "^(qemux86|qemux86-64|qemuarm|qemuarmv5|qemuarm64|qemuppc|qemumips)$" |
| 38 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 39 | KERNEL_DEVICETREE:qemuarmv5 = "arm/versatile-pb.dtb" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 40 | |
| 41 | # Functionality flags |
| 42 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc" |
| 43 | KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" |
| 44 | KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc" |
| 45 | KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" |
| 46 | KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" |
| 47 | KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" |
| 48 | KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}" |