summaryrefslogtreecommitdiff
path: root/include/env_callback.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-06-22 17:57:36 -0500
committerTom Rini <trini@konsulko.com>2015-07-08 18:26:39 -0400
commitf7848d90dde918423e6dfa462ec82bcdbba9defe (patch)
treeec06160a0d11f707adab36a805f4ecf6df3b57aa /include/env_callback.h
parentfb69b6cd270444c8d248e70e6be7c58f9828debd (diff)
downloadu-boot-f7848d90dde918423e6dfa462ec82bcdbba9defe.tar.gz
u-boot-f7848d90dde918423e6dfa462ec82bcdbba9defe.tar.bz2
u-boot-f7848d90dde918423e6dfa462ec82bcdbba9defe.zip
Allow CONFIG_REGEX to be disabled when CONFIG_NET
Instead of selecting REGEX when NET is enabled, make it the default, but allow boards that are tiny to disable it and lose functionality on all but the first Ethernet adapter. cm-bf548, bf538f-ezkit, and bf533-stamp need this. None appear to have more than one Ethernet interface. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/env_callback.h')
-rw-r--r--include/env_callback.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/env_callback.h b/include/env_callback.h
index ab5d42dd81..90b95b5e66 100644
--- a/include/env_callback.h
+++ b/include/env_callback.h
@@ -33,8 +33,10 @@
#ifdef CONFIG_REGEX
#define ENV_DOT_ESCAPE "\\"
+#define ETHADDR_WILDCARD "\\d?"
#else
#define ENV_DOT_ESCAPE
+#define ETHADDR_WILDCARD
#endif
#ifdef CONFIG_CMD_DNS
@@ -53,7 +55,7 @@
"nvlan:nvlan," \
"vlan:vlan," \
DNS_CALLBACK \
- "eth\\d?addr:ethaddr,"
+ "eth" ETHADDR_WILDCARD "addr:ethaddr,"
#else
#define NET_CALLBACKS
#endif