[U-Boot,2/7] warp7: include: configs: Specify image name of bootscript in FIT
diff mbox series

Message ID 20190508181448.20452-3-bryan.odonoghue@linaro.org
State New
Delegated to: Stefano Babic
Headers show
  • Switch WaRP7 BL33 to mbed Linux specific bootflow
Related show

Commit Message

Bryan O'Donoghue May 8, 2019, 6:14 p.m. UTC
When obtaining the bootscript from a FIT image we need to specify the name
of the bootscript as defined inside of the FIT.

This patch makes a define that appends a "bootscr" parameter to the source
command when compiling up in FIT mode on warp7.

An environment variable is supplied to enable others to use a different
name than "bootscr" as the image name of the boot script in their FIT.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
 include/configs/warp7.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff mbox series

diff --git a/include/configs/warp7.h b/include/configs/warp7.h
index 0ef8e35948..95955fd626 100644
--- a/include/configs/warp7.h
+++ b/include/configs/warp7.h
@@ -38,9 +38,17 @@ 
 	"dfu_alt_info=boot raw 0x2 0x1000 mmcpart 1\0" \
+/* When booting with FIT specify the node entry containing boot.scr */
+#if defined(CONFIG_FIT)
+#define BOOT_SCR_STRING "source ${bootscriptaddr}:${bootscr_fitimage_name}\0"
+#define BOOT_SCR_STRING "source ${bootscriptaddr}\0"
 	"script=boot.scr\0" \
+	"bootscr_fitimage_name=bootscr\0" \
 	"script_signed=boot.scr.imx-signed\0" \
 	"image=zImage\0" \
 	"console=ttymxc0\0" \