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-07-03 11:36:26 +0200
commit8ce2e8fd59d28ae2f937e08b2db6edf6451995bb (patch)
tree32061f306a4409781bafaa9921d65c12a41c06c5
parentd40ba711261029eb8e5913ebfe6b21843288d9bb (diff)
downloadmeta-phytec-8ce2e8fd59d28ae2f937e08b2db6edf6451995bb.tar.bz2
meta-phytec-8ce2e8fd59d28ae2f937e08b2db6edf6451995bb.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
+}