summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-09-24 04:25:12 -0500
committerJohn Klug <john.klug@multitech.com>2021-10-05 14:43:49 -0500
commitcba0437d85be754c0f06d4ad92628e0ae6403eba (patch)
tree32bcad1f1bd592c31e3f9920b13dceeb9c54140e
parent838477330f351ae2b871bf40111748f10c567aaf (diff)
downloadmeta-multitech-cba0437d85be754c0f06d4ad92628e0ae6403eba.tar.gz
meta-multitech-cba0437d85be754c0f06d4ad92628e0ae6403eba.tar.bz2
meta-multitech-cba0437d85be754c0f06d4ad92628e0ae6403eba.zip
Use dtc-native, rather than /usr/bin/dtc to compile overlays
-rw-r--r--recipes-bsp/multitech/mt-dt-overlay_1.0.4.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes-bsp/multitech/mt-dt-overlay_1.0.4.bb b/recipes-bsp/multitech/mt-dt-overlay_1.0.4.bb
index 76648ed..97635c9 100644
--- a/recipes-bsp/multitech/mt-dt-overlay_1.0.4.bb
+++ b/recipes-bsp/multitech/mt-dt-overlay_1.0.4.bb
@@ -6,7 +6,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit update-rc.d
INITSCRIPT_NAME = "${PN}"
INITSCRIPT_PARAMS = "start 40 S ."
-
+DEPENDS = "dtc-native"
RDEPENDS_${PN} = "bash"
@@ -37,9 +37,12 @@ S = "${WORKDIR}/git"
do_compile[depends] += "virtual/kernel:do_deploy virtual/kernel:do_shared_workdir"
do_compile[nostamp] = "1"
+# Make sure we are using the Yocto version of DTC, not what is installed in /usr/bin
+DTC_BIN_DIR = "${COMPONENTS_DIR}/x86_64/dtc-native/usr/bin"
+
do_compile () {
- echo MACHINE is ${MACHINE}
- oe_runmake DTC=/usr/bin/dtc KERNEL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${KERNEL_PATH} ${MACHINE}_dtbos
+ echo MACHINE is ${MACHINE}
+ oe_runmake DTC=${DTC_BIN_DIR}/dtc KERNEL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${KERNEL_PATH} ${MACHINE}_dtbos
}
FILES_${PN} = "${dt_dir} ${sysconfdir}"