summaryrefslogtreecommitdiffstats
path: root/common/bootm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-05-10 16:02:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-10 16:02:13 +0200
commit6922e0f005eeb655e7830e2718960c63c1ddf6fd (patch)
tree4117d21dfb30579ddeb20f99f775f2ef8120b7a5 /common/bootm.c
parentb9b0fd6c75147b71db28752c4262a82609f82e9a (diff)
downloadbarebox-6922e0f005eeb655e7830e2718960c63c1ddf6fd.tar.gz
bootm: Add verify mode "available"
The verify "available" mode checks whatever is available in the booted image, so when an image has a signature, it is checked and must be correct and when an image is hashed, it is also checked for correctness. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/bootm.c')
-rw-r--r--common/bootm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 53edc71..bf1b344 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -74,6 +74,7 @@ static const char * const bootm_verify_names[] = {
#ifndef CONFIG_BOOTM_FORCE_SIGNED_IMAGES
[BOOTM_VERIFY_NONE] = "none",
[BOOTM_VERIFY_HASH] = "hash",
+ [BOOTM_VERIFY_AVAILABLE] = "available",
#endif
[BOOTM_VERIFY_SIGNATURE] = "signature",
};