blob: 52cd6f5f28f2e4af120ea02e42a29f74610b391d [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
13
14# provide this .inc to set specific revisions
15include recipes-kernel/linux/linux-yocto-dev-revisions.inc
16
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050017KBRANCH = "v6.3/standard/base"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018KMETA = "kernel-meta"
19
20SRC_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.
28SRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
29SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
30
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050031LINUX_VERSION ?= "6.3"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
33PV = "${LINUX_VERSION}+git${SRCPV}"
34
Andrew Geissler82c905d2020-04-13 13:39:40 -050035LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080036
Brad Bishop316dfdd2018-06-25 12:45:53 -040037DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050038DEPENDS += "${@bb.utils.contains('ARCH', 'powerpc', 'elfutils-native', '', d)}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040039DEPENDS += "openssl-native util-linux-native"
Andrew Geisslereff27472021-10-29 15:35:00 -050040DEPENDS += "gmp-native libmpc-native"
Brad Bishop316dfdd2018-06-25 12:45:53 -040041
Andrew Geissler595f6302022-01-24 19:11:47 +000042# yaml and dtschema are required for 5.16+ device tree validation, libyaml is checked
43# via pkgconfig, so must always be present, but we can wrap the others to make them
44# conditional
45DEPENDS += "libyaml-native"
46
47PACKAGECONFIG ??= ""
48PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native"
49# we need the wrappers if validation isn't in the packageconfig
50DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}"
51
Patrick Williams864cc432023-02-09 14:54:44 -060052COMPATIBLE_MACHINE = "^(qemuarmv5|qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64|qemuloongarch64)$"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053
Patrick Williams213cb262021-08-07 19:21:33 -050054KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060055
Patrick Williamsc124f4f2015-09-15 14:41:29 -050056# Functionality flags
57KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
Patrick Williams213cb262021-08-07 19:21:33 -050058KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
59KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc"
60KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
61KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"
62KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}"
63KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}"
64KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050065
Brad Bishop6e60e8b2018-02-01 10:27:11 -050066KERNEL_VERSION_SANITY_SKIP = "1"