esp_netif: Add CONFIG_LWIP_DHCPS to sperate the code

This commit is contained in:
liuhan
2021-06-24 09:49:45 +08:00
committed by bot
parent cfb6857f53
commit 7d5ae1ee26
5 changed files with 57 additions and 2 deletions
+4 -1
View File
@@ -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