diff mbox series

[1/4] env: Setup default value for ENV_OFFSET_REDUND

Message ID dd3c4f29aa69431002fb0c36f95f8195cf1461e1.1617098995.git.michal.simek@xilinx.com
State Accepted
Commit ec217210f351c5c5089063f42eeb5e967a8ea5ba
Delegated to: Michal Simek
Headers show
Series xilinx: Enable redundant variables for all Xilinx SoCs | expand

Commit Message

Michal Simek March 30, 2021, 10:09 a.m. UTC
This variable is used for pointing to location where redundant variables
are located. There is no default value. And it doesn't need to be specified
which is showing as warning when savedefconfig is called.

make xilinx_zynqmp_virt_defconfig
 #
 # configuration written to .config
 #
make savedefconfig
 scripts/kconfig/conf  --savedefconfig=defconfig Kconfig
 .config:199:warning: symbol value '' invalid for ENV_OFFSET_REDUND

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 env/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/env/Kconfig b/env/Kconfig
index b473d7cfe1e9..bc4f7d8f4ee4 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -534,6 +534,7 @@  config ENV_OFFSET_REDUND
 	hex "Redundant environment offset"
 	depends on (ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
 		    ENV_IS_IN_SPI_FLASH) && SYS_REDUNDAND_ENVIRONMENT
+	default 0
 	help
 	  Offset from the start of the device (or partition) of the redundant
 	  environment location.