Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | KBRANCH ?= "v6.1/standard/preempt-rt/base" |
| 2 | |
| 3 | require recipes-kernel/linux/linux-yocto.inc |
| 4 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 5 | # CVE exclusions |
| 6 | include recipes-kernel/linux/cve-exclusion_6.1.inc |
| 7 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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 | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 17 | SRCREV_machine ?= "1dbf96de89b0e1dc082bfa90b45a5d581b1470a3" |
| 18 | SRCREV_meta ?= "fe6f2a4341877552eb279adc47e0ed32e3e2befa" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 19 | |
Andrew Geissler | 028142b | 2023-05-05 11:29:21 -0500 | [diff] [blame] | 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.1;destsuffix=${KMETA};protocol=https" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 22 | |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 23 | LINUX_VERSION ?= "6.1.32" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [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${SRCPV}" |
| 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 | |
| 39 | KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb" |
| 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)}" |