diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2018-10-15 16:40:54 +0100 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2018-11-30 12:53:43 +0000 |
commit | e037f65a1052e57c2c1d93b7f2d0dce2103533e5 (patch) | |
tree | b1969fa12318541c750479b62af4863d78df9ce1 | |
parent | 7ba5dd8723eeae9d27c2fb56d05e83978a4a60d7 (diff) |
warp7: include: configs: Specify image name of bootscript in FIT
When obtaining the bootscript from a FIT image we need to specify the nane
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>
-rw-r--r-- | include/configs/warp7.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/warp7.h b/include/configs/warp7.h index f185663791..d5f46ead9a 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -41,9 +41,17 @@ #define CONFIG_DFU_ENV_SETTINGS \ "dfu_alt_info=boot raw 0x2 0x400 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" \ "bootscriptaddr=0x83200000\0" \ "image=zImage\0" \ |