mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
env: Add regex support to env_attrs
Allow the features that use env_attrs to specify regexs for the name Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
cca98fd6aa
commit
bdf1fe4e68
3 changed files with 101 additions and 2 deletions
|
@ -31,12 +31,18 @@
|
|||
#define SPLASHIMAGE_CALLBACK
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_REGEX
|
||||
#define ENV_DOT_ESCAPE "\\"
|
||||
#else
|
||||
#define ENV_DOT_ESCAPE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This list of callback bindings is static, but may be overridden by defining
|
||||
* a new association in the ".callbacks" environment variable.
|
||||
*/
|
||||
#define ENV_CALLBACK_LIST_STATIC ENV_CALLBACK_VAR ":callbacks," \
|
||||
ENV_FLAGS_VAR ":flags," \
|
||||
#define ENV_CALLBACK_LIST_STATIC ENV_DOT_ESCAPE ENV_CALLBACK_VAR ":callbacks," \
|
||||
ENV_DOT_ESCAPE ENV_FLAGS_VAR ":flags," \
|
||||
"baudrate:baudrate," \
|
||||
"bootfile:bootfile," \
|
||||
"loadaddr:loadaddr," \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue