summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-04-15 07:37:36 -0300
committerStefano Babic <sbabic@denx.de>2018-04-26 09:00:44 +0200
commitf3c326287e3e32f7ffcf2286462793a554b158c4 (patch)
treef008be4cff049b7deafc4689798ed3e6769f63b3 /tools
parentfeb14c6348caadfd7bbb1e972f0c484faffa5a72 (diff)
Revert "imximage: Remove failure when no IVT offset is found"
This reverts commit b5b0e4e351e20a606de22db6a56ad6bc1e2aa8fd. Commit f916757300c1 ("imx: Create distinct pre-processed mkimage config files") provided a proper fix for the parallel mkimage config files build failure, so the original workaround can be safely reverted now. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/imximage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/imximage.c b/tools/imximage.c
index 6f16d45351..14f80154d0 100644
--- a/tools/imximage.c
+++ b/tools/imximage.c
@@ -777,6 +777,11 @@ static uint32_t parse_cfg_file(struct imx_header *imxhdr, char *name)
(*set_dcd_rst)(imxhdr, dcd_len, name, lineno);
fclose(fd);
+ /* Exit if there is no BOOT_FROM field specifying the flash_offset */
+ if (imximage_ivt_offset == FLASH_OFFSET_UNDEFINED) {
+ fprintf(stderr, "Error: No BOOT_FROM tag in %s\n", name);
+ exit(EXIT_FAILURE);
+ }
return dcd_len;
}