summaryrefslogtreecommitdiffstats
path: root/common/bootm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-05-10 16:00:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-10 16:00:04 +0200
commitb9b0fd6c75147b71db28752c4262a82609f82e9a (patch)
tree39375c964a44ad3a64f52a7f915f77f9364f07e8 /common/bootm.c
parentf55bf3c280305280387fe5b3143df07cea2de6e9 (diff)
downloadbarebox-b9b0fd6c75147b71db28752c4262a82609f82e9a.tar.gz
bootm: set bootm_verify_mode to correct value
When CONFIG_BOOTM_FORCE_SIGNED_IMAGES is enabled bootm_verify_mode shall be forced to "signature", so set bootm_verify_mode to this value during startup. Otherwise it shows up as "<NULL>" in devinfo. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/bootm.c')
-rw-r--r--common/bootm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/bootm.c b/common/bootm.c
index b74b922..53edc71 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -655,6 +655,10 @@ static int bootm_init(void)
globalvar_add_simple("bootm.initrd", NULL);
globalvar_add_simple("bootm.initrd.loadaddr", NULL);
}
+
+ if (IS_ENABLED(CONFIG_BOOTM_FORCE_SIGNED_IMAGES))
+ bootm_verify_mode = BOOTM_VERIFY_SIGNATURE;
+
globalvar_add_simple_enum("bootm.verify", (unsigned int *)&bootm_verify_mode,
bootm_verify_names, ARRAY_SIZE(bootm_verify_names));