env: ubi: KConfig: add CONFIG_ENV_UBI_VOLUME_REDUND
authorMarkus Klotzbuecher <markus.klotzbuecher@kistler.com>
Wed, 15 May 2019 13:15:53 +0000 (15:15 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 9 Jul 2019 05:00:05 +0000 (07:00 +0200)
Introduce the KConfig option CONFIG_ENV_UBI_VOLUME_REDUND for defining
the name of the UBI volume used to store the redundant environment.

Signed-off-by: Markus Klotzbuecher <markus.klotzbuecher@kistler.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Cc: Kyungmin Park <kmpark@infradead.org>
hs: get rid of stm32mp1* build errors

configs/stm32mp15_basic_defconfig
configs/stm32mp15_trusted_defconfig
env/Kconfig
include/configs/stm32mp1.h
scripts/config_whitelist.txt

index 4aa184fb5b51cf0d2ee6c0821add899f0bbb6d6a..79687d3dfd41ace63222b4bd06d27734e0743402 100644 (file)
@@ -52,6 +52,7 @@ CONFIG_ENV_EXT4_DEVICE_AND_PART="0:auto"
 CONFIG_ENV_EXT4_FILE="/uboot.env"
 CONFIG_ENV_UBI_PART="UBI"
 CONFIG_ENV_UBI_VOLUME="uboot_config"
+CONFIG_ENV_UBI_VOLUME_REDUND="uboot_config_r"
 CONFIG_STM32_ADC=y
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0xC0000000
index 5fe947782358b86365b1836fbb6661ea65859c27..e1ab2ab0d549563b1a67dceb3d79dc51cc69788e 100644 (file)
@@ -44,6 +44,7 @@ CONFIG_ENV_EXT4_DEVICE_AND_PART="0:auto"
 CONFIG_ENV_EXT4_FILE="/uboot.env"
 CONFIG_ENV_UBI_PART="UBI"
 CONFIG_ENV_UBI_VOLUME="uboot_config"
+CONFIG_ENV_UBI_VOLUME_REDUND="uboot_config_r"
 CONFIG_STM32_ADC=y
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0xC0000000
index b9439171fd565b2790f65ca0da0c9d2072d52942..b8bdfb0920aabbcc5439f85df4ce3185bbcf7bb9 100644 (file)
@@ -507,6 +507,12 @@ config ENV_UBI_VOLUME
        help
          Name of the volume that you want to store the environment in.
 
+config ENV_UBI_VOLUME_REDUND
+       string "UBI redundant volume name"
+       depends on ENV_IS_IN_UBI
+       help
+         Name of the redundant volume that you want to store the environment in.
+
 endif
 
 config USE_DEFAULT_ENV_FILE
index 1d385e0985c443c77ba699e234a2920a448570aa..0ce2fcb8b7a23842da9111f8b390ec21bf98413a 100644 (file)
  */
 #define CONFIG_SYS_LOAD_ADDR                   STM32_DDR_BASE
 
-#if defined(CONFIG_ENV_IS_IN_UBI)
-#define CONFIG_ENV_UBI_VOLUME_REDUND           "uboot_config_r"
-#endif
-
 #if defined(CONFIG_ENV_IS_IN_SPI_FLASH)
 #define        CONFIG_ENV_SECT_SIZE                    SZ_256K
 #define        CONFIG_ENV_OFFSET                       0x00280000
index d252045d80edb350920503c3367e11c3fb2e28de..7bb9545d4bc581951b0e1c83baeed5b35413089a 100644 (file)
@@ -473,7 +473,6 @@ CONFIG_ENV_SROM_BANK
 CONFIG_ENV_TOTAL_SIZE
 CONFIG_ENV_UBIFS_OPTION
 CONFIG_ENV_UBI_MTD
-CONFIG_ENV_UBI_VOLUME_REDUND
 CONFIG_ENV_VERSION
 CONFIG_EP9302
 CONFIG_EP9307