diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-10 15:36:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-10 15:36:45 +0200 |
commit | f55bf3c280305280387fe5b3143df07cea2de6e9 (patch) | |
tree | e9809d1ffb996059c64431c7b22ad2a73b1407fa /common/image-fit.c | |
parent | c06573f9d13d9dec8c45058057a05d6096497dd1 (diff) | |
download | barebox-f55bf3c280305280387fe5b3143df07cea2de6e9.tar.gz barebox-f55bf3c280305280387fe5b3143df07cea2de6e9.tar.xz |
bootm: fit: Print error when image is not signed
when fit is configured to force signed images then print an error
message when an unsigned image is opened to give the user a clue
what went wrong.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index a6e1082704..ceb55c2606 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -485,8 +485,11 @@ static int fit_open_configuration(struct fit_handle *handle, const char *name) return ret; } - if (ret < 0) + if (ret < 0) { + pr_err("configuration '%s': %s does not have a signature\n", + unit, desc); return ret; + } } if (of_property_read_string(conf_node, "kernel", &unit) == 0) { |