forked from ROMEO/obsw
adjusting xil eth to work for us
This commit is contained in:
27
bsp_z7/lwip/xilinx_eth/CMakeLists.txt
Normal file
27
bsp_z7/lwip/xilinx_eth/CMakeLists.txt
Normal file
@ -0,0 +1,27 @@
|
||||
set (LWIP_INCLUDE_DIRS_XIL
|
||||
"${LWIP_DIR}/src/include"
|
||||
"${LWIP_DIR}/src/include/compat/posix"
|
||||
"include"
|
||||
)
|
||||
|
||||
set(lwip_SRCS_XIL
|
||||
${lwipcore_SRCS}
|
||||
${lwipcore4_SRCS}
|
||||
${lwipcore6_SRCS}
|
||||
${lwipnetif_SRCS}
|
||||
${lwipapi_SRCS}
|
||||
#${LWIP_DIR}/contrib/ports/freertos/sys_arch.c
|
||||
#${LWIP_DIR}/src/netif/slipif.c
|
||||
#${LWIP_DIR}/src/apps/tftp/tftp.c
|
||||
)
|
||||
|
||||
|
||||
add_library(lwip_xil EXCLUDE_FROM_ALL ${lwip_SRCS_XIL})
|
||||
|
||||
target_include_directories(lwip_xil PUBLIC ${LWIP_INCLUDE_DIRS_XIL})
|
||||
|
||||
target_sources(lwip_xil PRIVATE xethernet.c)
|
||||
|
||||
add_subdirectory(netif)
|
||||
add_subdirectory(port)
|
||||
|
Reference in New Issue
Block a user