xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-kernel/linux/linux-yocto-dev.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# This recipe tracks the linux-yocto-dev repository as its upstream source.
2*4882a593Smuzhiyun# Since this tree is frequently updated, and periodically rebuilt, AUTOREV is
3*4882a593Smuzhiyun# used to track its contents.
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun# This recipe is just like other linux-yocto variants, with the only difference
6*4882a593Smuzhiyun# being that to avoid network access during initial parsing, static SRCREVs are
7*4882a593Smuzhiyun# provided and overridden if the preferred kernel provider is linux-yocto-dev.
8*4882a593Smuzhiyun#
9*4882a593Smuzhiyun# To enable this recipe, set PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuninherit kernel
12*4882a593Smuzhiyunrequire recipes-kernel/linux/linux-yocto.inc
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun# provide this .inc to set specific revisions
15*4882a593Smuzhiyuninclude recipes-kernel/linux/linux-yocto-dev-revisions.inc
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunKBRANCH = "v5.18/standard/base"
18*4882a593SmuzhiyunKMETA = "kernel-meta"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunSRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name=machine \
21*4882a593Smuzhiyun           git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA}"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun# Set default SRCREVs. Both the machine and meta SRCREVs are statically set
24*4882a593Smuzhiyun# to the korg v3.7 tag, and hence prevent network access during parsing. If
25*4882a593Smuzhiyun# linux-yocto-dev is the preferred provider, they will be overridden to
26*4882a593Smuzhiyun# AUTOREV in following anonymous python routine and resolved when the
27*4882a593Smuzhiyun# variables are finalized.
28*4882a593SmuzhiyunSRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
29*4882a593SmuzhiyunSRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunLINUX_VERSION ?= "5.18+"
32*4882a593SmuzhiyunLINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
33*4882a593SmuzhiyunPV = "${LINUX_VERSION}+git${SRCPV}"
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunDEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
38*4882a593SmuzhiyunDEPENDS += "openssl-native util-linux-native"
39*4882a593SmuzhiyunDEPENDS += "gmp-native libmpc-native"
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun# yaml and dtschema are required for 5.16+ device tree validation, libyaml is checked
42*4882a593Smuzhiyun# via pkgconfig, so must always be present, but we can wrap the others to make them
43*4882a593Smuzhiyun# conditional
44*4882a593SmuzhiyunDEPENDS += "libyaml-native"
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunPACKAGECONFIG ??= ""
47*4882a593SmuzhiyunPACKAGECONFIG[dt-validation] = ",,python3-dtschema-native"
48*4882a593Smuzhiyun# we need the wrappers if validation isn't in the packageconfig
49*4882a593SmuzhiyunDEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}"
50*4882a593Smuzhiyun
51*4882a593SmuzhiyunCOMPATIBLE_MACHINE = "^(qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64)$"
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunKERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun# Functionality flags
56*4882a593SmuzhiyunKERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
57*4882a593SmuzhiyunKERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
58*4882a593SmuzhiyunKERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc"
59*4882a593SmuzhiyunKERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
60*4882a593SmuzhiyunKERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"
61*4882a593SmuzhiyunKERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}"
62*4882a593SmuzhiyunKERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}"
63*4882a593SmuzhiyunKERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}"
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunKERNEL_VERSION_SANITY_SKIP = "1"
66