env: Setup default value for ENV_OFFSET_REDUND
authorMichal Simek <michal.simek@xilinx.com>
Wed, 24 Feb 2021 09:33:45 +0000 (10:33 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 23 Apr 2021 06:43:10 +0000 (08:43 +0200)
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

index 08e49c2..84e9fb1 100644 (file)
@@ -556,6 +556,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.