mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
esp_netif: Add CONFIG_LWIP_DHCPS to sperate the code
This commit is contained in:
@@ -7,7 +7,6 @@ set(include_dirs
|
||||
)
|
||||
|
||||
set(srcs
|
||||
"apps/dhcpserver/dhcpserver.c"
|
||||
"apps/sntp/sntp.c"
|
||||
"lwip/src/api/api_lib.c"
|
||||
"lwip/src/api/api_msg.c"
|
||||
@@ -145,6 +144,10 @@ if(CONFIG_LWIP_ICMP)
|
||||
"apps/ping/ping_sock.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_LWIP_DHCPS)
|
||||
list(APPEND srcs "apps/dhcpserver/dhcpserver.c")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "${include_dirs}"
|
||||
LDFRAGMENTS linker.lf
|
||||
|
||||
Reference in New Issue
Block a user