[OE-core] [PATCH v2] u-boot-mkimage: Add dependency on dtc

Otavio Salvador otavio at ossystems.com.br
Thu Feb 22 12:41:30 UTC 2018


The dtc is used when generating images which use Device Tree and we
must use the OE version to avoid relying on the host one.

Reported-by: Renato Caldas <rm.santos.caldas at gmail.com>
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---

Changes in v2:
- add rdepends on dtc
- fix depends on dtc-native for native

 meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
index f1fc5644922..d691cdce658 100644
--- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb
@@ -2,6 +2,7 @@ require u-boot-common_${PV}.inc
 
 SUMMARY = "U-Boot bootloader image creation tool"
 DEPENDS = "openssl"
+DEPENDS_append_class-native = " dtc-native"
 
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
 EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
@@ -24,4 +25,6 @@ do_install () {
 	ln -sf uboot-mkimage ${D}${bindir}/mkimage
 }
 
+RDEPENDS_${PN} += "dtc"
+
 BBCLASSEXTEND = "native nativesdk"
-- 
2.16.2




More information about the Openembedded-core mailing list