contrib/port/unix/lib: exclude slipif.c source

This commit is contained in:
Renzo Davoli 2023-01-17 17:35:32 +01:00 committed by Simon Goldschmidt
parent 3fe8d2fc43
commit 6a350a0278
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,7 @@ set (LWIP_INCLUDE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}/" "${CMAKE_CURRENT_SOURCE_DIR}/"
) )
set (LWIP_EXCLUDE_SLIPIF TRUE)
include(${LWIP_CONTRIB_DIR}/ports/unix/Filelists.cmake) include(${LWIP_CONTRIB_DIR}/ports/unix/Filelists.cmake)
include(${LWIP_DIR}/src/Filelists.cmake) include(${LWIP_DIR}/src/Filelists.cmake)

View File

@ -98,9 +98,12 @@ set(lwipnetif_SRCS
${LWIP_DIR}/src/netif/ethernet.c ${LWIP_DIR}/src/netif/ethernet.c
${LWIP_DIR}/src/netif/bridgeif.c ${LWIP_DIR}/src/netif/bridgeif.c
${LWIP_DIR}/src/netif/bridgeif_fdb.c ${LWIP_DIR}/src/netif/bridgeif_fdb.c
${LWIP_DIR}/src/netif/slipif.c
) )
if (NOT ${LWIP_EXCLUDE_SLIPIF})
list(APPEND lwipnetif_SRCS ${LWIP_DIR}/src/netif/slipif.c)
endif()
# 6LoWPAN # 6LoWPAN
set(lwipsixlowpan_SRCS set(lwipsixlowpan_SRCS
${LWIP_DIR}/src/netif/lowpan6_common.c ${LWIP_DIR}/src/netif/lowpan6_common.c