board/freescale: Introduce UBOOTBIN in spl genimage templates
authorJoris Offouga <offougajoris@gmail.com>
Tue, 9 Jul 2019 09:57:02 +0000 (11:57 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 9 Jul 2019 18:04:52 +0000 (20:04 +0200)
commit4f9f3a0e9695e670c707d938096ec620c612b694
tree1c731b8001676aa98ea198450eb9a22f866ecf6b
parentb65255ccc3bf4ed377b6fbd988730e4bed4786a0
board/freescale: Introduce UBOOTBIN in spl genimage templates

For boards like imx7d-pico, u-boot.img changes to u-boot-dtb.img in
U-Boot v2019.07. Therefore, we need to pick u-boot.img or u-boot-dtb.img
depending on the board configuration.

Just like was done in commit 52344e556fa03 for the generic genimage
template, replace the U-Boot file name with UBOOTBIN, which is set
according to the BR2_TARGET_UBOOT_FORMAT_* option. We also need to set
the correct value for this variable for the u-boot.img and
u-boot-dtb.img cases.

While we're at it, rename the partition from 'u-boot-img' to 'u-boot',
to stay consistent with the generic genimage template.

Signed-off-by: Joris Offouga <offougajoris@gmail.com>
[Arnout: correct u-boot.img condition, rework commit log]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl
board/freescale/common/imx/genimage.cfg.template_spl
board/freescale/common/imx/post-image.sh