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

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: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent fb69b6cd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -38,6 +38,7 @@ config SYS_VSNPRINTF
config REGEX
bool "Enable regular expression support"
default y if NET
help
If this variable is defined, U-Boot is linked against the
SLRE (Super Light Regular Expression) library, which adds
......
......@@ -4,7 +4,6 @@
menuconfig NET
bool "Networking support"
select REGEX
if NET
......
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