mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 22:14:54 +00:00
Add BOOTCOUNT_BOOTLIMIT to set reboot limit
Add ability to set environment bootlimit from Kconfig Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
This commit is contained in:
parent
d7869b2183
commit
c9ad6bc235
2 changed files with 11 additions and 0 deletions
|
@ -72,6 +72,14 @@ config BOOTCOUNT_AT91
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config BOOTCOUNT_BOOTLIMIT
|
||||||
|
int "Maximum number of reboot cycles allowed"
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Set the Maximum number of reboot cycles allowed without the boot
|
||||||
|
counter being cleared.
|
||||||
|
If set to 0 do not set a boot limit in the environment.
|
||||||
|
|
||||||
config BOOTCOUNT_ALEN
|
config BOOTCOUNT_ALEN
|
||||||
int "I2C address length"
|
int "I2C address length"
|
||||||
default 1
|
default 1
|
||||||
|
|
|
@ -104,6 +104,9 @@ const uchar default_environment[] = {
|
||||||
"soc=" CONFIG_SYS_SOC "\0"
|
"soc=" CONFIG_SYS_SOC "\0"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CONFIG_BOOTCOUNT_BOOTLIMIT) && (CONFIG_BOOTCOUNT_BOOTLIMIT > 0)
|
||||||
|
"bootlimit=" __stringify(CONFIG_BOOTCOUNT_BOOTLIMIT)"\0"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_EXTRA_ENV_SETTINGS
|
#ifdef CONFIG_EXTRA_ENV_SETTINGS
|
||||||
CONFIG_EXTRA_ENV_SETTINGS
|
CONFIG_EXTRA_ENV_SETTINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue