added cmake support for csp lib

This commit is contained in:
2020-12-29 13:59:31 +01:00
parent 96ea535242
commit 9a6fbbaff6
42 changed files with 490 additions and 67 deletions

View File

@ -10,7 +10,6 @@ elseif(${OS_FSFW} STREQUAL rtems)
elseif(${OS_FSFW} STREQUAL linux)
add_definitions(-DUNIX -DLINUX)
find_package(Threads REQUIRED)
set(BSP_PATH "bsp_linux")
# Hosted
else()
set(BSP_PATH "bsp_hosted")
@ -54,8 +53,10 @@ endif()
if(TGT_BSP)
if (${TGT_BSP} MATCHES "arm/raspberrypi" OR ${TGT_BSP} MATCHES "arm/q7s")
# set(BSP_PATH "bsp_linux")
if (${TGT_BSP} MATCHES "arm/raspberrypi")
set(BSP_PATH "bsp_rpi")
elseif(${TGT_BSP} MATCHES "arm/q7s")
set(BSP_PATH "bsp_q7s")
else()
message(WARNING "CMake not configured for this target!")
message(FATAL_ERROR "Target: ${TGT_BSP}!")