mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
Ethernet peripheral will depend on IDF_TARGET
esp32 has EMAC controller, but esp32s2 doesn't
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
require_idf_targets(esp32)
|
||||
|
||||
set(COMPONENT_SRCS "emac_dev.c"
|
||||
"emac_main.c"
|
||||
"eth_phy/phy_common.c"
|
||||
|
@@ -1,4 +1,5 @@
|
||||
menu Ethernet
|
||||
depends on IDF_TARGET_ESP32
|
||||
|
||||
config ETH_DMA_RX_BUF_NUM
|
||||
int "Number of DMA RX buffers"
|
||||
|
@@ -2,4 +2,8 @@
|
||||
# Component Makefile
|
||||
#
|
||||
|
||||
COMPONENT_SRCDIRS := . eth_phy
|
||||
ifdef CONFIG_IDF_TARGET_ESP32
|
||||
COMPONENT_SRCDIRS := . eth_phy
|
||||
else
|
||||
COMPONENT_CONFIG_ONLY := 1
|
||||
endif
|
||||
|
@@ -86,10 +86,17 @@ set(COMPONENT_SRCS "apps/dhcpserver/dhcpserver.c"
|
||||
"port/esp32/debug/lwip_debug.c"
|
||||
"port/esp32/freertos/sys_arch.c"
|
||||
"port/esp32/netif/dhcp_state.c"
|
||||
<<<<<<< bce8b14e7324423a5caad1c6a240e97fdc45afe2
|
||||
"port/esp32/netif/ethernetif.c"
|
||||
"port/esp32/netif/nettestif.c"
|
||||
=======
|
||||
>>>>>>> Ethernet peripheral will depend on IDF_TARGET
|
||||
"port/esp32/netif/wlanif.c")
|
||||
|
||||
if(CONFIG_IDF_TARGET_ESP32)
|
||||
list(APPEND COMPONENT_SRCS "port/esp32/netif/ethernetif.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_LWIP_PPP_SUPPORT)
|
||||
list(APPEND COMPONENT_SRCS "lwip/src/netif/ppp/auth.c"
|
||||
"lwip/src/netif/ppp/ccp.c"
|
||||
|
@@ -25,6 +25,10 @@ COMPONENT_SRCDIRS := \
|
||||
port/esp32/netif \
|
||||
port/esp32/debug
|
||||
|
||||
ifndef CONFIG_IDF_TARGET_ESP32
|
||||
COMPONENT_OBJEXCLUDE := port/esp32/netif/ethernetif.o
|
||||
endif
|
||||
|
||||
ifdef CONFIG_LWIP_PPP_SUPPORT
|
||||
COMPONENT_SRCDIRS += lwip/src/netif/ppp lwip/src/netif/ppp/polarssl
|
||||
endif
|
||||
|
Reference in New Issue
Block a user