From b9b0fd6c75147b71db28752c4262a82609f82e9a Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 10 May 2016 16:00:02 +0200 Subject: 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 "" in devinfo. Signed-off-by: Sascha Hauer --- common/bootm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/bootm.c') diff --git a/common/bootm.c b/common/bootm.c index b74b922aaa..53edc7162b 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)); -- cgit v1.2.3