2018-01-11 21:49:13 -05:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS
|
2018-02-26 23:45:30 -05:00
|
|
|
include/lwip
|
|
|
|
include/lwip/port
|
|
|
|
include/lwip/posix
|
|
|
|
apps/ping
|
2018-01-11 21:49:13 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
if(CONFIG_PPP_SUPPORT)
|
2018-02-26 23:45:30 -05:00
|
|
|
set(LWIP_PPP_DIRS netif/ppp/polarssl netif/ppp)
|
2018-01-11 21:49:13 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set(COMPONENT_SRCDIRS
|
2018-02-26 23:45:30 -05:00
|
|
|
api
|
|
|
|
apps apps/sntp apps/ping
|
|
|
|
core core/ipv4 core/ipv6
|
|
|
|
${LWIP_PPP_DIRS} netif
|
|
|
|
port/freertos port/netif port/debug port)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2018-03-22 02:27:10 -04:00
|
|
|
set(COMPONENT_REQUIRES "")
|
|
|
|
set(COMPONENT_PRIV_REQUIRES ethernet tcpip_adapter)
|
|
|
|
|
2018-01-11 21:49:13 -05:00
|
|
|
register_component()
|
|
|
|
|
2018-02-21 23:05:05 -05:00
|
|
|
component_compile_options(-Wno-address)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
|
|
|
# patch around warnings in third-party files
|
|
|
|
set_source_files_properties(api/tcpip.c
|
2018-02-26 23:45:30 -05:00
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-unused-variable
|
|
|
|
)
|
2018-01-11 21:49:13 -05:00
|
|
|
set_source_files_properties(core/pbuf.c core/tcp_in.c
|
2018-02-26 23:45:30 -05:00
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-unused-but-set-variable
|
|
|
|
)
|
2018-01-11 21:49:13 -05:00
|
|
|
set_source_files_properties(apps/dhcpserver.c
|
2018-02-26 23:45:30 -05:00
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
"-Wno-unused-variable -Wno-unused-but-set-variable -Wno-type-limits"
|
|
|
|
)
|
2018-04-18 03:54:28 -04:00
|
|
|
set_source_files_properties(netif/ppp/pppos.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-type-limits)
|