summaryrefslogtreecommitdiff
path: root/include/env_default.h
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2018-07-21 20:25:32 +0000
committerTom Rini <trini@konsulko.com>2018-08-17 13:03:59 -0400
commitc9ad6bc23543fbfa9735118b93b5f4741ab0ad6f (patch)
tree9c30be3b73acb978bd67921b29d8ac9329541f7f /include/env_default.h
parentd7869b2183d2b786e5410b97a5a6b2e630e7825e (diff)
downloadu-boot-c9ad6bc23543fbfa9735118b93b5f4741ab0ad6f.tar.gz
u-boot-c9ad6bc23543fbfa9735118b93b5f4741ab0ad6f.tar.bz2
u-boot-c9ad6bc23543fbfa9735118b93b5f4741ab0ad6f.zip
Add BOOTCOUNT_BOOTLIMIT to set reboot limit
Add ability to set environment bootlimit from Kconfig Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
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 bd600cfa44..86b639d3e2 100644
--- a/include/env_default.h
+++ b/include/env_default.h
@@ -104,6 +104,9 @@ const uchar default_environment[] = {
"soc=" CONFIG_SYS_SOC "\0"
#endif
#endif
+#if defined(CONFIG_BOOTCOUNT_BOOTLIMIT) && (CONFIG_BOOTCOUNT_BOOTLIMIT > 0)
+ "bootlimit=" __stringify(CONFIG_BOOTCOUNT_BOOTLIMIT)"\0"
+#endif
#ifdef CONFIG_EXTRA_ENV_SETTINGS
CONFIG_EXTRA_ENV_SETTINGS
#endif