blob: a6a8b60e1b0f89143a8a96c8496448b2ce453a25 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001KBRANCH ?= "standard/preempt-rt/base"
2
3require recipes-kernel/linux/linux-yocto.inc
4
5# Skip processing of this recipe if it is not explicitly specified as the
6# PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying
7# to build multiple virtual/kernel providers, e.g. as dependency of
8# core-image-rt-sdk, core-image-rt.
9python () {
Brad Bishop316dfdd2018-06-25 12:45:53 -040010 if d.getVar("KERNEL_PACKAGE_NAME") == "kernel" and d.getVar("PREFERRED_PROVIDER_virtual/kernel") != "linux-yocto-rt":
11 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it")
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012}
13
Brad Bishopbba38f32018-08-23 16:11:46 +080014SRCREV_machine ?= "ef88c3326f62cec4b98340324ddbe7f7f7704fd5"
15SRCREV_meta ?= "2ae65226f64ed5c888d60eef76b6249db678d060"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016
17SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.12.git;branch=${KBRANCH};name=machine \
18 git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.12;destsuffix=${KMETA}"
19
Brad Bishopbba38f32018-08-23 16:11:46 +080020LINUX_VERSION ?= "4.12.28"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021
22PV = "${LINUX_VERSION}+git${SRCPV}"
23
24KMETA = "kernel-meta"
25KCONF_BSP_AUDIT_LEVEL = "2"
26
27LINUX_KERNEL_TYPE = "preempt-rt"
28
29COMPATIBLE_MACHINE = "(qemux86|qemux86-64|qemuarm|qemuppc|qemumips)"
30
31KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb"
32
33# Functionality flags
34KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
35KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}"
36KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc"
37KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
38KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc"