dtc-145-native is used by older U-Boot recipes. U-Boot only depends on
the native dtc binary. So, to not clash with files from the regular dtc native
build do only install the dtc binary renamed to dtc-145. Also, create
a new class to handle with dtc-145 dependency.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
--- /dev/null
+# Use this class for U-Boot 2017.03 or older.
+
+DEPENDS_append = " dtc-145-native"
+
+do_configure_prepend () {
+ sed -i -e 's/^DTC[[:space:]]*=[[:space:]]*dtc[[:space:]]*$/DTC = dtc-145/' ${S}/Makefile
+}
require recipes-bsp/u-boot/u-boot.inc
PROVIDES += "u-boot"
-DEPENDS_append = "dtc-145-native"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
S = "${WORKDIR}/git"
-inherit fsl-u-boot-localversion
+inherit dtc-145 fsl-u-boot-localversion
LOCALVERSION ?= "-${SRCBRANCH}"
S = "${WORKDIR}/git"
BBCLASSEXTEND = "native nativesdk"
+
+# only install the dtc binary renamed to dtc-145
+do_install () {
+ install -d ${D}/${bindir}
+ install -m 755 dtc ${D}/${bindir}/dtc-145
+}