mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:

committed by
Tom Rini

parent
fb69b6cd27
commit
f7848d90dd
@ -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
|
||||
|
Reference in New Issue
Block a user