We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f3e523 + 0a1d6be commit f19610cCopy full SHA for f19610c
solutions/common/CMakeLists.txt
@@ -1,8 +1,14 @@
1
2
set(component_srcdirs "./")
3
4
+set(component_requires esp_netif nvs_flash esp_wifi)
5
+
6
+if("${IDF_TARGET}" STREQUAL "esp32p4")
7
+ list(APPEND component_requires "ethernet_init esp_eth")
8
+endif()
9
10
idf_component_register(
11
SRC_DIRS ./
12
INCLUDE_DIRS ./
- REQUIRES esp_netif nvs_flash esp_wifi
13
+ REQUIRES ${component_requires}
14
)
solutions/common/network.c
@@ -17,7 +17,7 @@
17
#include "esp_event.h"
18
#include "network.h"
19
20
-#ifdef USE_ETHERNET
+#ifdef CONFIG_NETWORK_USE_ETHERNET
21
#include "esp_eth.h"
22
#include "ethernet_init.h"
23
#else
0 commit comments