diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-12-11 22:16:24 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-13 11:46:55 -0700 |
commit | 170ab11075d3be56e89d6444abf1148329130f4b (patch) | |
tree | d3088ad532f4f4a0082f625ce50cfd120d6a6a1d /include/env_default.h | |
parent | be11235ab802844e12d84921a38fd8ae4ddda080 (diff) | |
download | u-boot-170ab11075d3be56e89d6444abf1148329130f4b.tar.gz u-boot-170ab11075d3be56e89d6444abf1148329130f4b.tar.bz2 u-boot-170ab11075d3be56e89d6444abf1148329130f4b.zip |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/env_default.h b/include/env_default.h index a1db73a2c5..d05eba1618 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 |