public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] env: enable CONFIG_ENV_IS_IN_EXT4
@ 2017-11-27 16:26 Jorge Ramirez-Ortiz
  2017-11-27 16:33 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Jorge Ramirez-Ortiz @ 2017-11-27 16:26 UTC (permalink / raw)
  To: u-boot

---
 env/Kconfig | 10 ++++++++++
 env/env.c   |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/env/Kconfig b/env/Kconfig
index 2477bf8..4387a2c 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -81,6 +81,16 @@ config ENV_IS_IN_FAT
 	  - CONFIG_FAT_WRITE:
 	  This must be enabled. Otherwise it cannot save the environment file.
 
+config ENV_IS_IN_EXT4
+	bool "Environment is in a EXT4 filesystem"
+	depends on !CHAIN_OF_TRUST
+	select EXT4_WRITE
+	help
+	  Define this if you want to use the EXT4 file system for the environment.
+
+	  - CONFIG_EXT4_WRITE:
+	  This must be enabled. Otherwise it cannot save the environment file.
+
 config ENV_IS_IN_FLASH
 	bool "Environment in flash memory"
 	depends on !CHAIN_OF_TRUST
diff --git a/env/env.c b/env/env.c
index 76a5608..7455632 100644
--- a/env/env.c
+++ b/env/env.c
@@ -32,6 +32,8 @@ static enum env_location env_get_default_location(void)
 		return ENVL_EEPROM;
 	else if IS_ENABLED(CONFIG_ENV_IS_IN_FAT)
 		return ENVL_FAT;
+	else if IS_ENABLED(CONFIG_ENV_IS_IN_EXT4)
+		return ENVL_EXT4;
 	else if IS_ENABLED(CONFIG_ENV_IS_IN_FLASH)
 		return ENVL_FLASH;
 	else if IS_ENABLED(CONFIG_ENV_IS_IN_MMC)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-27 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27 16:26 [U-Boot] [PATCH] env: enable CONFIG_ENV_IS_IN_EXT4 Jorge Ramirez-Ortiz
2017-11-27 16:33 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox