diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-12-11 22:16:32 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-13 11:46:56 -0700 |
commit | 30fd4fadb319d7c6d43d949e2d30ffaea46a60cf (patch) | |
tree | cedfa8c38a45f3f6afe046a999003e56a609c84d /tools/env/Makefile | |
parent | 2598090b7e17f8bdca95b22e7f27217054730e02 (diff) | |
download | u-boot-imx-30fd4fadb319d7c6d43d949e2d30ffaea46a60cf.zip u-boot-imx-30fd4fadb319d7c6d43d949e2d30ffaea46a60cf.tar.gz u-boot-imx-30fd4fadb319d7c6d43d949e2d30ffaea46a60cf.tar.bz2 |
tools/env: Add environment variable flags support
Currently just validates variable types as decimal, hexidecimal,
boolean, ip address, and mac address. Call
env_acl_validate_setenv_params() from setenv() in fw_env.c.
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.
Need to build in _ctype for isdigit for Linux.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/env/Makefile')
-rw-r--r-- | tools/env/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/env/Makefile b/tools/env/Makefile index ab73c8c..0e798e0 100644 --- a/tools/env/Makefile +++ b/tools/env/Makefile @@ -24,12 +24,15 @@ include $(TOPDIR)/config.mk HOSTSRCS := $(SRCTREE)/lib/crc32.c fw_env.c fw_env_main.c +HOSTSRCS += $(SRCTREE)/lib/ctype.c $(SRCTREE)/lib/linux_string.c +HOSTSRCS += $(SRCTREE)/common/env_attr.c $(SRCTREE)/common/env_flags.c HEADERS := fw_env.h $(OBJTREE)/include/config.h # Compile for a hosted environment on the target HOSTCPPFLAGS = -idirafter $(SRCTREE)/include \ -idirafter $(OBJTREE)/include2 \ -idirafter $(OBJTREE)/include \ + -idirafter $(SRCTREE)/tools/env \ -DUSE_HOSTCC \ -DTEXT_BASE=$(TEXT_BASE) |