diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-02-20 10:29:05 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 10:43:06 +0000 |
commit | 7bf275b54eee8bb3499cb8eb2d9241278def1709 (patch) | |
tree | 5ccc5c5dbe12b177e0e7306a641ca41eb8489340 /meta/classes | |
parent | 366fe3d01e623f30b81f3224dc556af8c778fc48 (diff) | |
download | poky-7bf275b54eee8bb3499cb8eb2d9241278def1709.tar.gz |
devicetree.bbclass: Add virtual provider for dtb
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"
(From OE-Core rev: a7d52dbffd0da95de82d910c595a6c27d9b2ad0d)
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/devicetree.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/devicetree.bbclass b/meta/classes/devicetree.bbclass index 8fe5a5ed79..e1f377911d 100644 --- a/meta/classes/devicetree.bbclass +++ b/meta/classes/devicetree.bbclass | |||
@@ -27,6 +27,8 @@ inherit deploy kernel-arch | |||
27 | 27 | ||
28 | COMPATIBLE_MACHINE ?= "^$" | 28 | COMPATIBLE_MACHINE ?= "^$" |
29 | 29 | ||
30 | PROVIDES = "virtual/dtb" | ||
31 | |||
30 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 32 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
31 | 33 | ||
32 | SYSROOT_DIRS += "/boot/devicetree" | 34 | SYSROOT_DIRS += "/boot/devicetree" |