]> 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:22:30 +0000 (09:22 -0300)
commitf607eb8734af83a3667bb4581c1b93307e06d337
tree67a0ca368df49856fd3b26f857777a65d787fc27
parentd49ab0d5bbd01d8cca8103668da72962124e14d3
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>
recipes-bsp/imx-mkimage/imx-boot_1.0.bb