mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
env: Add environment variable flags
Currently just validates variable types as decimal, hexidecimal, boolean, ip address, and mac address. If the entry is not found in the env ".flags", then look in the static one. This allows the env to override the static definitions, but prevents the need to have every definition in the environment distracting you. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:

committed by
Tom Rini

parent
e080d545f8
commit
2598090b7e
@ -24,6 +24,7 @@
|
||||
#ifndef __ENV_CALLBACK_H__
|
||||
#define __ENV_CALLBACK_H__
|
||||
|
||||
#include <env_flags.h>
|
||||
#include <linker_lists.h>
|
||||
#include <search.h>
|
||||
|
||||
@ -45,6 +46,7 @@
|
||||
* a new association in the ".callbacks" environment variable.
|
||||
*/
|
||||
#define ENV_CALLBACK_LIST_STATIC ENV_CALLBACK_VAR ":callbacks," \
|
||||
ENV_FLAGS_VAR ":flags," \
|
||||
"baudrate:baudrate," \
|
||||
"bootfile:bootfile," \
|
||||
"loadaddr:loadaddr," \
|
||||
|
Reference in New Issue
Block a user