Skip to content
Snippets Groups Projects
Commit 30fd4fad authored by Joe Hershberger's avatar Joe Hershberger Committed by Tom Rini
Browse files

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: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 2598090b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment