blob: f407882316e311c51010ad72e67eb2cc9c11dd66 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# 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
11inherit kernel
12require recipes-kernel/linux/linux-yocto.inc
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013# for ncurses tests
14inherit pkgconfig
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16# provide this .inc to set specific revisions
17include recipes-kernel/linux/linux-yocto-dev-revisions.inc
18
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019KBRANCH = "standard/base"
20KMETA = "kernel-meta"
21
22SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name=machine \
23 git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA}"
24
25# Set default SRCREVs. Both the machine and meta SRCREVs are statically set
26# to the korg v3.7 tag, and hence prevent network access during parsing. If
27# linux-yocto-dev is the preferred provider, they will be overridden to
28# AUTOREV in following anonymous python routine and resolved when the
29# variables are finalized.
30SRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
31SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
32
William A. Kennington IIIac69b482021-06-02 12:28:27 -070033LINUX_VERSION ?= "5.13+"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
35PV = "${LINUX_VERSION}+git${SRCPV}"
36
Andrew Geissler82c905d2020-04-13 13:39:40 -050037LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038
Brad Bishop316dfdd2018-06-25 12:45:53 -040039DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
40DEPENDS += "openssl-native util-linux-native"
41
Brad Bishop79641f22019-09-10 07:20:22 -040042COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv64)"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043
Brad Bishopf3fd2882019-06-21 08:06:37 -040044KERNEL_DEVICETREE_qemuarmv5 = "versatile-pb.dtb"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060045
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046# Functionality flags
47KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
48KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}"
Brad Bishopc68388fc2019-08-26 01:33:31 -040049KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
Andrew Geissler82c905d2020-04-13 13:39:40 -050051KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050052KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}"
Andrew Geisslerc926e172021-05-07 16:11:35 -050053KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}"
54KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050055
Brad Bishop6e60e8b2018-02-01 10:27:11 -050056KERNEL_VERSION_SANITY_SKIP = "1"