linux-yocto-dev.bb 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. inherit kernel
  11. require recipes-kernel/linux/linux-yocto.inc
  12. # provide this .inc to set specific revisions
  13. include recipes-kernel/linux/linux-yocto-dev-revisions.inc
  14. KBRANCH = "v6.9/standard/base"
  15. KMETA = "kernel-meta"
  16. SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name=machine;protocol=https \
  17. git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA};protocol=https"
  18. # Set default SRCREVs. Both the machine and meta SRCREVs are statically set
  19. # to the korg v3.7 tag, and hence prevent network access during parsing. If
  20. # linux-yocto-dev is the preferred provider, they will be overridden to
  21. # AUTOREV in following anonymous python routine and resolved when the
  22. # variables are finalized.
  23. SRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
  24. SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
  25. LINUX_VERSION ?= "6.9"
  26. LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
  27. PV = "${LINUX_VERSION}+git"
  28. LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
  29. # yaml and dtschema are required for 5.16+ device tree validation, libyaml is checked
  30. # via pkgconfig, so must always be present, but we can wrap the others to make them
  31. # conditional
  32. DEPENDS += "libyaml-native"
  33. PACKAGECONFIG ??= ""
  34. PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native"
  35. # we need the wrappers if validation isn't in the packageconfig
  36. DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}"
  37. COMPATIBLE_MACHINE = "^(qemuarmv5|qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64|qemuloongarch64)$"
  38. KERNEL_DEVICETREE:qemuarmv5 = "arm/versatile-pb.dtb"
  39. # Functionality flags
  40. KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc"
  41. KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
  42. KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc"
  43. KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc"
  44. KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"
  45. KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}"
  46. KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}"
  47. KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc features/gpio/sim.scc", "", d)}"
  48. KERNEL_VERSION_SANITY_SKIP = "1"