forked from ROMEO/obsw
lwip is back (using printf with malloc, but apart from that static)
This commit is contained in:
@ -43,9 +43,6 @@ add_executable(${TARGET_NAME})
|
||||
# lwip
|
||||
set (LWIP_INCLUDE_DIRS
|
||||
"${LWIP_DIR}/src/include"
|
||||
"${LWIP_DIR}/src/include/compat/posix"
|
||||
"${LWIP_DIR}/contrib"
|
||||
"${LWIP_DIR}/contrib/ports/freertos/include"
|
||||
"${BSP_PATH}/lwip"
|
||||
)
|
||||
include(${LWIP_DIR}/src/Filelists.cmake)
|
||||
@ -53,14 +50,11 @@ set(lwip_SRCS
|
||||
${lwipcore_SRCS}
|
||||
${lwipcore4_SRCS}
|
||||
${lwipcore6_SRCS}
|
||||
${lwipapi_SRCS}
|
||||
${lwipnetif_SRCS}
|
||||
${LWIP_DIR}/src/netif/slipif.c
|
||||
${LWIP_DIR}/src/apps/tftp/tftp.c
|
||||
${LWIP_DIR}/contrib/ports/freertos/sys_arch.c
|
||||
)
|
||||
#add_library(lwip ${lwip_SRCS})
|
||||
#target_include_directories(lwip PUBLIC ${LWIP_INCLUDE_DIRS})
|
||||
add_library(lwip ${lwip_SRCS})
|
||||
target_include_directories(lwip PUBLIC ${LWIP_INCLUDE_DIRS})
|
||||
|
||||
#target_compile_options(${TARGET_NAME} PUBLIC -g -O0 -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard)
|
||||
|
||||
@ -94,8 +88,8 @@ add_subdirectory(mission_rust)
|
||||
# ##############################################################################
|
||||
|
||||
# Add libraries for all sources.
|
||||
#target_link_libraries(lwip PUBLIC freertos_kernel)
|
||||
target_link_libraries(${TARGET_NAME} PUBLIC freertos_kernel mission_rust)
|
||||
target_link_libraries(lwip PUBLIC freertos_kernel)
|
||||
target_link_libraries(${TARGET_NAME} PUBLIC freertos_kernel mission_rust lwip)
|
||||
|
||||
target_include_directories(
|
||||
${TARGET_NAME} PUBLIC ${BSP_PATH})
|
||||
|
Reference in New Issue
Block a user