mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
env: Add a silent env handler
The silent variable now updates the global data flag anytime it is changed as well as after the env relocation (in case its value is different from the default env in such cases as NAND env) Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
849d5d9cda
commit
e080d545f8
3 changed files with 40 additions and 4 deletions
|
@ -34,6 +34,12 @@
|
|||
#define CONFIG_ENV_CALLBACK_LIST_STATIC
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SILENT_CONSOLE
|
||||
#define SILENT_CALLBACK "silent:silent,"
|
||||
#else
|
||||
#define SILENT_CALLBACK
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This list of callback bindings is static, but may be overridden by defining
|
||||
* a new association in the ".callbacks" environment variable.
|
||||
|
@ -42,6 +48,7 @@
|
|||
"baudrate:baudrate," \
|
||||
"bootfile:bootfile," \
|
||||
"loadaddr:loadaddr," \
|
||||
SILENT_CALLBACK \
|
||||
"stdin:console,stdout:console,stderr:console," \
|
||||
CONFIG_ENV_CALLBACK_LIST_STATIC
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue