summaryrefslogtreecommitdiff
path: root/include/env_default.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-12-11 22:16:24 -0600
committerTom Rini <trini@ti.com>2012-12-13 11:46:55 -0700
commit170ab11075d3be56e89d6444abf1148329130f4b (patch)
treed3088ad532f4f4a0082f625ce50cfd120d6a6a1d /include/env_default.h
parentbe11235ab802844e12d84921a38fd8ae4ddda080 (diff)
downloadu-boot-imx-170ab11075d3be56e89d6444abf1148329130f4b.zip
u-boot-imx-170ab11075d3be56e89d6444abf1148329130f4b.tar.gz
u-boot-imx-170ab11075d3be56e89d6444abf1148329130f4b.tar.bz2
env: Add support for callbacks to environment vars
Add support for per-variable callbacks to the "hashtable" functions. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> !!!fix comment in callback
Diffstat (limited to 'include/env_default.h')
-rw-r--r--include/env_default.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/env_default.h b/include/env_default.h
index a1db73a..d05eba1 100644
--- a/include/env_default.h
+++ b/include/env_default.h
@@ -24,6 +24,8 @@
* MA 02111-1307 USA
*/
+#include <env_callback.h>
+
#ifdef DEFAULT_ENV_INSTANCE_EMBEDDED
env_t environment __PPCENV__ = {
ENV_CRC, /* CRC Sum */
@@ -36,6 +38,9 @@ static char default_environment[] = {
#else
const uchar default_environment[] = {
#endif
+#ifdef CONFIG_ENV_CALLBACK_LIST_DEFAULT
+ ENV_CALLBACK_VAR "=" CONFIG_ENV_CALLBACK_LIST_DEFAULT "\0"
+#endif
#ifdef CONFIG_BOOTARGS
"bootargs=" CONFIG_BOOTARGS "\0"
#endif