kumquat-buildroot/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl
Joris Offouga 4f9f3a0e96 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 52344e556f 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>
2019-07-09 20:04:52 +02:00

31 lines
652 B
Plaintext

# Minimal SD card image for the Freescale boards Template for SPL Boot
#
# We mimic the .sdcard Freescale's image format:
# * the SD card must have 1 kB free space at the beginning,
# * SPL is at the offset expected by ROM,
# * U-Boot is at the offset expected by SPL,
# * The first partition is expected to be an ext2 and have a /boot directory.
#
image sdcard.img {
hdimage {
}
partition spl {
in-partition-table = "no"
image = "SPL"
offset = 1024
}
partition u-boot {
in-partition-table = "no"
image = "%UBOOTBIN%"
offset = 69K
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext2"
}
}