Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # This recipe tracks the linux-yocto-dev repository as its upstream source. |
| 2 | # Since this tree is frequently updated, and periodically rebuilt, AUTOREV is |
| 3 | # used to track its contents. |
| 4 | # |
| 5 | # This recipe is just like other linux-yocto variants, with the only difference |
| 6 | # being that to avoid network access during initial parsing, static SRCREVs are |
| 7 | # provided and overridden if the preferred kernel provider is linux-yocto-dev. |
| 8 | # |
| 9 | # To enable this recipe, set PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev" |
| 10 | |
| 11 | inherit kernel |
| 12 | require recipes-kernel/linux/linux-yocto.inc |
| 13 | |
| 14 | # provide this .inc to set specific revisions |
| 15 | include recipes-kernel/linux/linux-yocto-dev-revisions.inc |
| 16 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | KBRANCH = "standard/base" |
| 18 | KMETA = "kernel-meta" |
| 19 | |
| 20 | SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name=machine \ |
| 21 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA}" |
| 22 | |
| 23 | # Set default SRCREVs. Both the machine and meta SRCREVs are statically set |
| 24 | # to the korg v3.7 tag, and hence prevent network access during parsing. If |
| 25 | # linux-yocto-dev is the preferred provider, they will be overridden to |
| 26 | # AUTOREV in following anonymous python routine and resolved when the |
| 27 | # variables are finalized. |
| 28 | SRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}' |
| 29 | SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}' |
| 30 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 31 | LINUX_VERSION ?= "4.12-rc+" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}" |
| 33 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 34 | |
| 35 | COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64)" |
| 36 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb" |
| 38 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | # Functionality flags |
| 40 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc" |
| 41 | KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" |
| 44 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc" |
| 45 | KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "" ,d)}" |
| 46 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 47 | KERNEL_VERSION_SANITY_SKIP = "1" |