diff mbox series

[6/7] hmibsc: enable U-Boot Environment variables protection

Message ID 20231218072428.1802969-7-sumit.garg@linaro.org
State New
Headers show
Series Add SE HMBSC board support | expand

Commit Message

Sumit Garg Dec. 18, 2023, 7:24 a.m. UTC
Enable Environment protection with:

CONFIG_ENV_WRITEABLE_LIST=y
CONFIG_ENV_ACCESS_IGNORE_FORCE=y

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
---
 configs/hmibsc_defconfig | 4 ++++
 include/configs/hmibsc.h | 2 ++
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/configs/hmibsc_defconfig b/configs/hmibsc_defconfig
index cef9e304b3a..656c9c6d0d6 100644
--- a/configs/hmibsc_defconfig
+++ b/configs/hmibsc_defconfig
@@ -36,6 +36,10 @@  CONFIG_CMD_USB=y
 CONFIG_BOOTP_BOOTFILESIZE=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIMER=y
+CONFIG_CMD_ENV_FLAGS=y
+CONFIG_CMD_NVEDIT_INFO=y
+CONFIG_ENV_WRITEABLE_LIST=y
+CONFIG_ENV_ACCESS_IGNORE_FORCE=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_SYS_MMC_ENV_PART=2
diff --git a/include/configs/hmibsc.h b/include/configs/hmibsc.h
index b614dec7870..b228e035429 100644
--- a/include/configs/hmibsc.h
+++ b/include/configs/hmibsc.h
@@ -54,4 +54,6 @@ 
 	"fi; " \
 	"load ${devtype} ${devnum}:${distro_bootpart} ${loadaddr} /boot/fitImage && bootm"
 
+#define CFG_ENV_FLAGS_LIST_STATIC "BOOT_A_LEFT:dw,BOOT_B_LEFT:dw,BOOT_ORDER:sw"
+
 #endif