diff mbox series

[1/2] handler: bootloader: set mask to IMAGE_HANDLER

Message ID 20181121164144.8487-1-sbabic@denx.de
State Accepted
Headers show
Series [1/2] handler: bootloader: set mask to IMAGE_HANDLER | expand

Commit Message

Stefano Babic Nov. 21, 2018, 4:41 p.m. UTC
The handler runs as image handler even if it modifies the environment.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 handlers/boot_handler.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/handlers/boot_handler.c b/handlers/boot_handler.c
index 791c7be..ac6e4e0 100644
--- a/handlers/boot_handler.c
+++ b/handlers/boot_handler.c
@@ -56,11 +56,11 @@  __attribute__((constructor))
 static void uboot_handler(void)
 {
 	register_handler("uboot", install_boot_environment,
-				BOOTLOADER_HANDLER, NULL);
+				IMAGE_HANDLER | BOOTLOADER_HANDLER, NULL);
 }
 __attribute__((constructor))
 static void boot_handler(void)
 {
 	register_handler("bootloader", install_boot_environment,
-				BOOTLOADER_HANDLER, NULL);
+				IMAGE_HANDLER | BOOTLOADER_HANDLER, NULL);
 }