]> code.ossystems Code Review - openembedded-core.git/commitdiff
devicetree.bbclass: Add virtual provider for dtb
authorManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Wed, 20 Feb 2019 18:29:05 +0000 (10:29 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Feb 2019 10:42:56 +0000 (10:42 +0000)
Add virtual provider for dtb. This class can be used to generate dtb
from static devicetree, for reference see meta-xilinx layer
meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb

By providing a virtual provider we can use it to differentiate between
in-kernel dtb or an external one. This can be set in local.conf as
PREFERRED_PROVIDER_virtual/dtb = "devicetree"

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devicetree.bbclass

index 8fe5a5ed795c88f837e788c2cea514fb1e7fda5b..e1f377911d3ee5c6d0cad8eb7fc091947bc70b6f 100644 (file)
@@ -27,6 +27,8 @@ inherit deploy kernel-arch
 
 COMPATIBLE_MACHINE ?= "^$"
 
+PROVIDES = "virtual/dtb"
+
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 SYSROOT_DIRS += "/boot/devicetree"