]> code.ossystems Code Review - meta-freescale.git/commit
imx-boot: allow for additional/different u-boot device-tree
authorMax Krummenacher <max.krummenacher@toradex.com>
Mon, 31 Aug 2020 14:28:57 +0000 (16:28 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 2 Oct 2020 12:37:37 +0000 (09:37 -0300)
commit87527af8335550beda59d8b587bf97fec97f0dd4
tree429eb7e61dbd3faf78a84f4abd611465a41aaad9
parentbf533436ee5bca67a9c8ba06d329e03d2e32e260
imx-boot: allow for additional/different u-boot device-tree

With the current call to imx-mkimage and SOC_TARGET = "iMX8M" the u-boot
device tree file name is set to $(PLAT)-evk.dtb in iMX8M/soc.mak which
happens to match ${UBOOT_DTB_NAME} if building for an NXP machine.

Setting the dtbs environment variable to ${UBOOT_DTB_NAME} makes the build
succeed also for other machines.

In the hardcoded version $(dtbs) is an intermediate file and gets delete
as the last step of make. Thus for several make targets we have to redo
the copy step before each make invocation or the second one will fail as
the device tree file is then missing.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit f607eb8734af83a3667bb4581c1b93307e06d337)
recipes-bsp/imx-mkimage/imx-boot_1.0.bb