summaryrefslogtreecommitdiff
path: root/include/env_default.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-12-12 04:16:31 (GMT)
committerTom Rini <trini@ti.com>2012-12-13 18:46:56 (GMT)
commit2598090b7e17f8bdca95b22e7f27217054730e02 (patch)
tree08c613d02581cdf4238736511cc10d5f3c782990 /include/env_default.h
parente080d545f8ffb104a13b07deddf92ecb498b3a94 (diff)
downloadu-boot-fsl-qoriq-2598090b7e17f8bdca95b22e7f27217054730e02.tar.xz
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_default.h')
-rw-r--r--include/env_default.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/env_default.h b/include/env_default.h
index d05eba1..39c5b7c 100644
--- a/include/env_default.h
+++ b/include/env_default.h
@@ -41,6 +41,9 @@ const uchar default_environment[] = {
#ifdef CONFIG_ENV_CALLBACK_LIST_DEFAULT
ENV_CALLBACK_VAR "=" CONFIG_ENV_CALLBACK_LIST_DEFAULT "\0"
#endif
+#ifdef CONFIG_ENV_FLAGS_LIST_DEFAULT
+ ENV_FLAGS_VAR "=" CONFIG_ENV_FLAGS_LIST_DEFAULT "\0"
+#endif
#ifdef CONFIG_BOOTARGS
"bootargs=" CONFIG_BOOTARGS "\0"
#endif