From ef84699d1320284f565cb3b5516ef5dbfe3d6152 Mon Sep 17 00:00:00 2001 From: Drath Date: Fri, 19 Jun 2026 13:30:38 +0200 Subject: [PATCH] this too --- CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ddf563a..ca02f3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,14 @@ +set(priv_requires esp_netif esp_wifi nvs_flash) +set(requires "") + +if(CONFIG_SOC_EMAC_SUPPORTED) + list(APPEND priv_requires esp_eth esp_driver_gpio ethernet_init) + list(APPEND requires lan87xx) +endif() + idf_component_register( SRC_DIRS "." - PRIV_REQUIRES esp_netif esp_eth esp_wifi nvs_flash esp_driver_gpio - REQUIRES lan87xx + PRIV_REQUIRES ${priv_requires} + REQUIRES ${requires} INCLUDE_DIRS "." -) +) \ No newline at end of file