diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-10 15:35:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-10 15:35:36 +0200 |
commit | c06573f9d13d9dec8c45058057a05d6096497dd1 (patch) | |
tree | 07e359f4e268920301470fece4c370637412d2c5 /common | |
parent | 97cfccda76e94860d72e72ecdc9f839a6d6f3057 (diff) | |
download | barebox-c06573f9d13d9dec8c45058057a05d6096497dd1.tar.gz barebox-c06573f9d13d9dec8c45058057a05d6096497dd1.tar.xz |
bootm: fit: Print error when image is not hashed
When fit is configured to check hashes print an error when an image
does not contain hashes instead of failing silently.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/image-fit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 4f5c1f16c8..a6e1082704 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -436,9 +436,12 @@ static int fit_open_image(struct fit_handle *handle, const char *unit, const voi if (ret < 0) return ret; } + + if (ret < 0) { + pr_err("image '%s': '%s' does not have hashes\n", unit, desc); + return ret; + } } - if (ret < 0) - return ret; *outdata = data; *outsize = data_len; |