aboutsummaryrefslogtreecommitdiff
path: root/include/env_default.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-06-13 22:57:36 -0400
committerTom Rini <trini@konsulko.com>2022-06-28 17:11:49 -0400
commita331017c237c7da159a1657984250d656ed1c487 (patch)
treed483f40146e31cf0aead714f0d6bf75e27293a89 /include/env_default.h
parentbf904ea41883d7dacd77a1c257d10cc89a0ec394 (diff)
Complete migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment
- Ensure that everyone setting mtdids= and mtdparts= is doing so via the CONFIG options. - If the CONFIG options are set, ensure that the default environment sets mtdparts / mtdids. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/env_default.h')
-rw-r--r--include/env_default.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/env_default.h b/include/env_default.h
index d1508b3ff4..4e461c815a 100644
--- a/include/env_default.h
+++ b/include/env_default.h
@@ -108,6 +108,12 @@ const char default_environment[] = {
#if defined(CONFIG_BOOTCOUNT_BOOTLIMIT) && (CONFIG_BOOTCOUNT_BOOTLIMIT > 0)
"bootlimit=" __stringify(CONFIG_BOOTCOUNT_BOOTLIMIT)"\0"
#endif
+#ifdef CONFIG_MTDIDS_DEFAULT
+ "mtdids=" CONFIG_MTDIDS_DEFAULT "\0"
+#endif
+#ifdef CONFIG_MTDPARTS_DEFAULT
+ "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
+#endif
#ifdef CONFIG_EXTRA_ENV_TEXT
/* This is created in the Makefile */
CONFIG_EXTRA_ENV_TEXT