summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hemp <christian.hemp@posteo.de>2018-07-03 10:12:50 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2018-09-05 15:54:35 +0200
commit247f8c6def52ea414ca1697f32e62427cad87056 (patch)
treeae005ed746a2f7f3cde09a0e244077d60a434db1
parentf4f5e5b47a0e75126882b28e60efa52a42c1cadc (diff)
downloadmeta-phytec-247f8c6def52ea414ca1697f32e62427cad87056.tar.bz2
meta-phytec-247f8c6def52ea414ca1697f32e62427cad87056.zip
recipes-bsp: imx-boot: rename phytec devicetree
The imx-mkimage tool use hard coded devicetree names. That it works with Phytec own u-boot devicetree, rename it to the NXP devicetree name. Signed-off-by: Christian Hemp <christian.hemp@posteo.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--dynamic-layers/fsl-bsp-release/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend10
1 files changed, 10 insertions, 0 deletions
diff --git a/dynamic-layers/fsl-bsp-release/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend b/dynamic-layers/fsl-bsp-release/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend
index 1e1a916..6c42277 100644
--- a/dynamic-layers/fsl-bsp-release/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend
+++ b/dynamic-layers/fsl-bsp-release/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend
@@ -1 +1,11 @@
CFLAGS = "-O2 -Wall -std=c99 -static -I ${STAGING_INCDIR_NATIVE} -L ${STAGING_LIBDIR_NATIVE}"
+
+#HACK that imx-mkimage runs
+#The soc.mak file has hardcoded u-boot devicetree names. For the Alpha release we
+#use a HACK variant and renamed the Phytec devictree equal to NXP devicetree.
+
+do_compile_prepend () {
+ if [ "${SOC_TARGET}" = "iMX8M" ]; then
+ cp ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/${UBOOT_DTB_NAME} ${S}/${SOC_TARGET}/fsl-imx8mq-evk.dtb
+ fi
+}