]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
warp7: include: configs: Specify image name of bootscript in FIT
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 8 May 2019 18:14:43 +0000 (19:14 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 13:21:25 +0000 (15:21 +0200)
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

index 8ceaa0c6c604a3c35f3d5543c9def16fb522109a..f5449b0c792998a358d90ff8077ce7ef10d515ef 100644 (file)
 #define CONFIG_DFU_ENV_SETTINGS \
        "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"
+#else
+#define BOOT_SCR_STRING "source ${bootscriptaddr}\0"
+#endif
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
        CONFIG_DFU_ENV_SETTINGS \
        "script=boot.scr\0" \
+       "bootscr_fitimage_name=bootscr\0" \
        "script_signed=boot.scr.imx-signed\0" \
        "image=zImage\0" \
        "console=ttymxc0\0" \