summaryrefslogtreecommitdiffstats
path: root/include/env_callback.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-12-11 22:16:31 -0600
committerTom Rini <trini@ti.com>2012-12-13 11:46:56 -0700
commit2598090b7e17f8bdca95b22e7f27217054730e02 (patch)
tree08c613d02581cdf4238736511cc10d5f3c782990 /include/env_callback.h
parente080d545f8ffb104a13b07deddf92ecb498b3a94 (diff)
downloadblackbird-obmc-uboot-2598090b7e17f8bdca95b22e7f27217054730e02.tar.gz
blackbird-obmc-uboot-2598090b7e17f8bdca95b22e7f27217054730e02.zip
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>
Diffstat (limited to 'include/env_callback.h')
-rw-r--r--include/env_callback.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/env_callback.h b/include/env_callback.h
index f52e133f1f..47fdc6fa91 100644
--- a/include/env_callback.h
+++ b/include/env_callback.h
@@ -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," \
OpenPOWER on IntegriCloud