summaryrefslogtreecommitdiff
path: root/include/env_default.h
diff options
context:
space:
mode:
authorTomas Peterka <[email protected]>2025-01-31 11:08:44 +0100
committerTom Rini <[email protected]>2025-02-14 10:19:24 -0600
commit940135eea5df45ac8101af3c3af2aa54762d9747 (patch)
treecb00ba73c766be630b22a46ea3a9aad204a889af /include/env_default.h
parentf60d1163c1fe2dd409ba1af9368715c9237e567d (diff)
Kconfig: Move CONFIG_BOOTCOUNT_ALTBOOTCMD to Kconfig
Add CONFIG_BOOTCOUNT_ALTBOOTCMD so the developer is able to add custom altbootcmd via Kconfig when they enable BOOTCOUNT. With this now in Kconfig, we need to move it from environment files / config.h files and in to the defconfig file. This was done by generating u-boot-initial-env for all platforms before the Kconfig change, to extract altbootcmd values and then again after to compare the result. [trini: Perform migration to defconfigs, reword commit message] Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/env_default.h')
-rw-r--r--include/env_default.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/env_default.h b/include/env_default.h
index aa3dd40f3fa..60c39f9853f 100644
--- a/include/env_default.h
+++ b/include/env_default.h
@@ -115,6 +115,9 @@ const char default_environment[] = {
#if defined(CONFIG_BOOTCOUNT_BOOTLIMIT) && (CONFIG_BOOTCOUNT_BOOTLIMIT > 0)
"bootlimit=" __stringify(CONFIG_BOOTCOUNT_BOOTLIMIT)"\0"
#endif
+#ifdef CONFIG_BOOTCOUNT_ALTBOOTCMD
+ "altbootcmd=" CONFIG_BOOTCOUNT_ALTBOOTCMD "\0"
+#endif
#ifdef CONFIG_MTDIDS_DEFAULT
"mtdids=" CONFIG_MTDIDS_DEFAULT "\0"
#endif