From 6a350a0278f2146e01b9d0d8629a542c3c8ff387 Mon Sep 17 00:00:00 2001 From: Renzo Davoli Date: Tue, 17 Jan 2023 17:35:32 +0100 Subject: [PATCH] contrib/port/unix/lib: exclude slipif.c source --- contrib/ports/unix/lib/CMakeLists.txt | 1 + src/Filelists.cmake | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/ports/unix/lib/CMakeLists.txt b/contrib/ports/unix/lib/CMakeLists.txt index 93d17bd0..40229c44 100644 --- a/contrib/ports/unix/lib/CMakeLists.txt +++ b/contrib/ports/unix/lib/CMakeLists.txt @@ -19,6 +19,7 @@ set (LWIP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/" ) +set (LWIP_EXCLUDE_SLIPIF TRUE) include(${LWIP_CONTRIB_DIR}/ports/unix/Filelists.cmake) include(${LWIP_DIR}/src/Filelists.cmake) diff --git a/src/Filelists.cmake b/src/Filelists.cmake index 6003c6fc..bbd814c5 100644 --- a/src/Filelists.cmake +++ b/src/Filelists.cmake @@ -98,9 +98,12 @@ set(lwipnetif_SRCS ${LWIP_DIR}/src/netif/ethernet.c ${LWIP_DIR}/src/netif/bridgeif.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 set(lwipsixlowpan_SRCS ${LWIP_DIR}/src/netif/lowpan6_common.c