diff options
author | Tom Rini <trini@konsulko.com> | 2022-06-13 22:57:35 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-28 17:11:49 -0400 |
commit | bf904ea41883d7dacd77a1c257d10cc89a0ec394 (patch) | |
tree | c937104208e22871d7005ac1acd2558e381e4fe4 /include/env_default.h | |
parent | d8564e919d06480c84f5e3c9a35e2b8a43092524 (diff) | |
download | u-boot-bf904ea41883d7dacd77a1c257d10cc89a0ec394.tar.gz |
Rename CONFIG_SYS_AUTOLAOD to CONFIG_SYS_DISABLE_AUTOLOAD
The "autoload" environment variable is always checked with env_get_yesno
as it can be set to any form of no. The default behavior of
env_get_yesno is to return -1 on variables that are not set, which acts
as true in general (we test for non-zero return). To convert
CONFIG_SYS_AUTOLOAD to Kconfig, given that it was almost always used to
set autoload to no, first rename to CONFIG_SYS_DISABLE_AUTOLOAD for
consistency sake. Then, make it so that if enabled we set autoload=0 in
the default environment. Migrate all platforms which set
CONFIG_SYS_AUTOLOAD to non-true or that set autoload to false in their
default environment to using CONFIG_SYS_DISABLE_AUTOLOAD
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/env_default.h')
-rw-r--r-- | include/env_default.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/env_default.h b/include/env_default.h index 7113e08e6b..d1508b3ff4 100644 --- a/include/env_default.h +++ b/include/env_default.h @@ -59,8 +59,8 @@ const char default_environment[] = { #ifdef CONFIG_SERVERIP "serverip=" __stringify(CONFIG_SERVERIP) "\0" #endif -#ifdef CONFIG_SYS_AUTOLOAD - "autoload=" CONFIG_SYS_AUTOLOAD "\0" +#ifdef CONFIG_SYS_DISABLE_AUTOLOAD + "autoload=0\0" #endif #ifdef CONFIG_PREBOOT "preboot=" CONFIG_PREBOOT "\0" |