blob: 7f22d34ef607d725bf7458bee3a22fcba1652425 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001KBRANCH ?= "v5.4/standard/base"
2
3require recipes-kernel/linux/linux-yocto.inc
4
5# board specific branches
Patrick Williams213cb262021-08-07 19:21:33 -05006KBRANCH:qemuarm ?= "v5.4/standard/arm-versatile-926ejs"
7KBRANCH:qemuarm64 ?= "v5.4/standard/qemuarm64"
8KBRANCH:qemumips ?= "v5.4/standard/mti-malta32"
9KBRANCH:qemuppc ?= "v5.4/standard/qemuppc"
10KBRANCH:qemuriscv64 ?= "v5.4/standard/base"
11KBRANCH:qemux86 ?= "v5.4/standard/base"
12KBRANCH:qemux86-64 ?= "v5.4/standard/base"
13KBRANCH:qemumips64 ?= "v5.4/standard/mti-malta64"
Andrew Geissler82c905d2020-04-13 13:39:40 -050014
Patrick Williams213cb262021-08-07 19:21:33 -050015SRCREV_machine:qemuarm ?= "f367cbe6d0c21c65257c66a4c9b1845fd43285f8"
16SRCREV_machine:qemuarm64 ?= "8dcb7ee83e58da8bf51ed8b72165e1ed35beb928"
17SRCREV_machine:qemumips ?= "3d4c6263bfdf95960894b75c76aa450d240e3e8e"
18SRCREV_machine:qemuppc ?= "125a824c8d14c49b640bc0d6e040d495177caa10"
19SRCREV_machine:qemuriscv64 ?= "997c04e7a40084a53bc3d45490949584364697bd"
20SRCREV_machine:qemux86 ?= "997c04e7a40084a53bc3d45490949584364697bd"
21SRCREV_machine:qemux86-64 ?= "997c04e7a40084a53bc3d45490949584364697bd"
22SRCREV_machine:qemumips64 ?= "7082f58984404a5aad90bca1dac4e27773fff26e"
23SRCREV_machine ?= "997c04e7a40084a53bc3d45490949584364697bd"
24SRCREV_meta ?= "231d3a07e10680c7c89ea101cd803b0684482b11"
Andrew Geissler82c905d2020-04-13 13:39:40 -050025
26# remap qemuarm to qemuarma15 for the 5.4 kernel
Patrick Williams213cb262021-08-07 19:21:33 -050027# KMACHINE:qemuarm ?= "qemuarma15"
Andrew Geissler82c905d2020-04-13 13:39:40 -050028
29SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \
30 git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}"
31
32LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
Patrick Williams213cb262021-08-07 19:21:33 -050033LINUX_VERSION ?= "5.4.135"
Andrew Geissler82c905d2020-04-13 13:39:40 -050034
35DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
36DEPENDS += "openssl-native util-linux-native"
37
38PV = "${LINUX_VERSION}+git${SRCPV}"
39
40KMETA = "kernel-meta"
Andrew Geissler635e0e42020-08-21 15:58:33 -050041KCONF_BSP_AUDIT_LEVEL = "1"
Andrew Geissler82c905d2020-04-13 13:39:40 -050042
Patrick Williams213cb262021-08-07 19:21:33 -050043KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"
Andrew Geissler82c905d2020-04-13 13:39:40 -050044
45COMPATIBLE_MACHINE = "qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv64"
46
47# Functionality flags
48KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
Patrick Williams213cb262021-08-07 19:21:33 -050049KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
50KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc"
51KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
52KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"
53KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}"
54KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}"
55KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}"