mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
simplify NET_LEGACY || NET_LWIP condition with NET condition
Since the move to make NET a menuconfig and NO_NET a synonym of NET=n, when NET is enabled, NET_LEGACY || NET_LWIP is necessarily true, so let's simplify the various checks across the codebase. SPL_NET_LWIP doesn't exist but SPL_NET_LEGACY is an alias for SPL_NET so the proper symbol is still defined in SPL whenever needed. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#define DNS_CALLBACK
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY) || CONFIG_IS_ENABLED(NET_LWIP)
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
#define NET_CALLBACKS \
|
||||
"bootfile:bootfile," \
|
||||
"ipaddr:ipaddr," \
|
||||
|
||||
@@ -14,7 +14,7 @@ enum env_flags_vartype {
|
||||
env_flags_vartype_decimal,
|
||||
env_flags_vartype_hex,
|
||||
env_flags_vartype_bool,
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY) || CONFIG_IS_ENABLED(NET_LWIP)
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
env_flags_vartype_ipaddr,
|
||||
env_flags_vartype_macaddr,
|
||||
#endif
|
||||
@@ -41,7 +41,7 @@ enum env_flags_varaccess {
|
||||
#define CFG_ENV_FLAGS_LIST_STATIC ""
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY) || CONFIG_IS_ENABLED(NET_LWIP)
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
#ifdef CONFIG_REGEX
|
||||
#define ETHADDR_WILDCARD "\\d*"
|
||||
#else
|
||||
@@ -123,7 +123,7 @@ enum env_flags_varaccess env_flags_parse_varaccess(const char *flags);
|
||||
*/
|
||||
enum env_flags_varaccess env_flags_parse_varaccess_from_binflags(int binflags);
|
||||
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY) || CONFIG_IS_ENABLED(NET_LWIP)
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
/*
|
||||
* Check if a string has the format of an Ethernet MAC address
|
||||
*/
|
||||
|
||||
@@ -235,7 +235,7 @@ int eth_rx(void); /* Check for received packets */
|
||||
*/
|
||||
void reset_phy(void);
|
||||
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY) || CONFIG_IS_ENABLED(NET_LWIP)
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
/**
|
||||
* eth_set_enable_bootdevs() - Enable or disable binding of Ethernet bootdevs
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user