diff options
author | Tom Rini <trini@konsulko.com> | 2016-05-17 12:10:35 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-17 12:10:35 -0400 |
commit | 27bec5c12757c80f598b704477c1bc6c250bcb4c (patch) | |
tree | 24920d248e78373128e603dd9a13584eb73be2d7 /common/spl/spl.c | |
parent | d6b7757e41d22e08f21f58d3fe9183a150582f61 (diff) | |
parent | 291000894ed4d6257830baba547764b86e335b5c (diff) |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r-- | common/spl/spl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 82e7f58e80..93f9bd13fc 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -73,7 +73,7 @@ void spl_set_header_raw_uboot(void) spl_image.name = "U-Boot"; } -void spl_parse_image_header(const struct image_header *header) +int spl_parse_image_header(const struct image_header *header) { u32 header_size = sizeof(struct image_header); @@ -111,6 +111,9 @@ void spl_parse_image_header(const struct image_header *header) * is bad, and thus should be skipped silently. */ panic("** no mkimage signature but raw image not supported"); +#elif defined(CONFIG_SPL_ABORT_ON_RAW_IMAGE) + /* Signature not found, proceed to other boot methods. */ + return -EINVAL; #else /* Signature not found - assume u-boot.bin */ debug("mkimage signature not found - ih_magic = %x\n", @@ -118,6 +121,7 @@ void spl_parse_image_header(const struct image_header *header) spl_set_header_raw_uboot(); #endif } + return 0; } __weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) |