[PATCH 4/6] bootm: fit: Print error when image is not signed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 common/image-fit.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/common/image-fit.c b/common/image-fit.c
index a6e1082..ceb55c2 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) {
-- 
2.8.0.rc3


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux