Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | KBRANCH ?= "standard/preempt-rt/base" |
| 2 | |
| 3 | require 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. |
| 9 | python () { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | } |
| 13 | |
Brad Bishop | bba38f3 | 2018-08-23 16:11:46 +0800 | [diff] [blame^] | 14 | SRCREV_machine ?= "ef88c3326f62cec4b98340324ddbe7f7f7704fd5" |
| 15 | SRCREV_meta ?= "2ae65226f64ed5c888d60eef76b6249db678d060" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | |
| 17 | SRC_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 Bishop | bba38f3 | 2018-08-23 16:11:46 +0800 | [diff] [blame^] | 20 | LINUX_VERSION ?= "4.12.28" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | |
| 22 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 23 | |
| 24 | KMETA = "kernel-meta" |
| 25 | KCONF_BSP_AUDIT_LEVEL = "2" |
| 26 | |
| 27 | LINUX_KERNEL_TYPE = "preempt-rt" |
| 28 | |
| 29 | COMPATIBLE_MACHINE = "(qemux86|qemux86-64|qemuarm|qemuppc|qemumips)" |
| 30 | |
| 31 | KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb" |
| 32 | |
| 33 | # Functionality flags |
| 34 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc" |
| 35 | KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}" |
| 36 | KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc" |
| 37 | KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" |
| 38 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc" |