summaryrefslogtreecommitdiff
path: root/env/Kconfig
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2018-06-26 10:03:22 -0700
committerTom Rini <trini@konsulko.com>2018-07-21 12:24:31 -0400
commit474ecd2c84d97314b8145fbe3a57887f41b2edb3 (patch)
treeaf23d2f9097bfaef92c69a4ed3177f85454c2907 /env/Kconfig
parent646f1ab4bcfedf2db7df47a46ac2353366b7b2b7 (diff)
downloadu-boot-474ecd2c84d97314b8145fbe3a57887f41b2edb3.tar.gz
u-boot-474ecd2c84d97314b8145fbe3a57887f41b2edb3.tar.bz2
u-boot-474ecd2c84d97314b8145fbe3a57887f41b2edb3.zip
env: Simplify Makefile using $(SPL_TPL_)
Add Kconfig options SPL_ENV_* and TPL_ENV_* and simplify Makefile. This allows SPL/TPL image has different environment setting from full feature U-Boot. Signed-off-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'env/Kconfig')
-rw-r--r--env/Kconfig115
1 files changed, 115 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig
index 787b487bb2..be99efb937 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -533,4 +533,119 @@ config ENV_VARS_UBOOT_RUNTIME_CONFIG
run-time determined information about the hardware to the
environment. These will be named board_name, board_rev.
+if SPL_ENV_SUPPORT
+config SPL_ENV_IS_NOWHERE
+ bool "SPL Environment is not stored"
+ default y if ENV_IS_NOWHERE
+ help
+ Similar to ENV_IS_NOWHERE, used for SPL environment.
+
+config SPL_ENV_IS_IN_MMC
+ bool "SPL Environment in an MMC device"
+ depends on !SPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_MMC
+ default y
+ help
+ Similar to ENV_IS_IN_MMC, used for SPL environment.
+
+config SPL_ENV_IS_IN_FAT
+ bool "SPL Environment is in a FAT filesystem"
+ depends on !SPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_FAT
+ default y
+ help
+ Similar to ENV_IS_IN_FAT, used for SPL environment.
+
+config SPL_ENV_IS_IN_EXT4
+ bool "SPL Environment is in a EXT4 filesystem"
+ depends on !SPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_EXT4
+ default y
+ help
+ Similar to ENV_IS_IN_EXT4, used for SPL environment.
+
+config SPL_ENV_IS_IN_NAND
+ bool "SPL Environment in a NAND device"
+ depends on !SPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_NAND
+ default y
+ help
+ Similar to ENV_IS_IN_NAND, used for SPL environment.
+
+config SPL_ENV_IS_IN_SPI_FLASH
+ bool "SPL Environment is in SPI flash"
+ depends on !SPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_SPI_FLASH
+ default y
+ help
+ Similar to ENV_IS_IN_SPI_FLASH, used for SPL environment.
+
+config SPL_ENV_IS_IN_FLASH
+ bool "SPL Environment in flash memory"
+ depends on !SPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_FLASH
+ default y
+ help
+ Similar to ENV_IS_IN_FLASH, used for SPL environment.
+
+endif
+
+if TPL_ENV_SUPPORT
+
+config TPL_ENV_IS_NOWHERE
+ bool "TPL Environment is not stored"
+ default y if ENV_IS_NOWHERE
+ help
+ Similar to ENV_IS_NOWHERE, used for TPL environment.
+
+config TPL_ENV_IS_IN_MMC
+ bool "TPL Environment in an MMC device"
+ depends on !TPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_MMC
+ default y
+ help
+ Similar to ENV_IS_IN_MMC, used for TPL environment.
+
+config TPL_ENV_IS_IN_FAT
+ bool "TPL Environment is in a FAT filesystem"
+ depends on !TPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_FAT
+ default y
+ help
+ Similar to ENV_IS_IN_FAT, used for TPL environment.
+
+config TPL_ENV_IS_IN_EXT4
+ bool "TPL Environment is in a EXT4 filesystem"
+ depends on !TPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_EXT4
+ default y
+ help
+ Similar to ENV_IS_IN_EXT4, used for TPL environment.
+
+config TPL_ENV_IS_IN_NAND
+ bool "TPL Environment in a NAND device"
+ depends on !TPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_NAND
+ default y
+ help
+ Similar to ENV_IS_IN_NAND, used for TPL environment.
+
+config TPL_ENV_IS_IN_SPI_FLASH
+ bool "TPL Environment is in SPI flash"
+ depends on !TPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_SPI_FLASH
+ default y
+ help
+ Similar to ENV_IS_IN_SPI_FLASH, used for TPL environment.
+
+config TPL_ENV_IS_IN_FLASH
+ bool "TPL Environment in flash memory"
+ depends on !TPL_ENV_IS_NOWHERE
+ depends on ENV_IS_IN_FLASH
+ default y
+ help
+ Similar to ENV_IS_IN_FLASH, used for TPL environment.
+
+endif
+
endmenu