added rpi support

This commit is contained in:
Robin Müller 2020-12-29 01:26:22 +01:00
parent e2d7905334
commit be82cd472e
4 changed files with 25 additions and 3 deletions

View File

@ -47,7 +47,11 @@ set(MISSION_PATH mission)
include (${CMAKE_SCRIPT_PATH}/HardwareOsPreConfig.cmake)
pre_source_hw_os_config()
if(${OS_FSFW} MATCHES linux)
set(FSFW_CONFIG_PATH "fsfwconfig")
else()
set(FSFW_CONFIG_PATH "${BSP_PATH}/fsfwconfig")
endif()
################################################################################
# Executable and Sources
@ -57,9 +61,10 @@ set(FSFW_CONFIG_PATH "${BSP_PATH}/fsfwconfig")
add_executable(${TARGET_NAME})
# Add subdirectories
if(LIB_OS_NAME)
add_subdirectory(${LIB_OS_NAME})
if(${OS_FSFW} MATCHES linux)
add_subdirectory(${FSFW_CONFIG_PATH})
endif()
add_subdirectory(${BSP_PATH})
add_subdirectory(${FSFW_PATH})
add_subdirectory(${MISSION_PATH})

View File

@ -1,3 +1,7 @@
target_sources(${TARGET_NAME} PRIVATE
print.c
)
target_include_directories(${TARGET_NAME} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -53,7 +53,9 @@ if(CMAKE_CROSSCOMPILING)
endif()
if(${TGT_BSP} MATCHES "arm/raspberrypi")
set(BSP_PATH "bsp_linux")
else()
if(TGT_BSP)

11
fsfwconfig/CMakeLists.txt Normal file
View File

@ -0,0 +1,11 @@
target_sources(${TARGET_NAME} PRIVATE
ipc/MissionMessageTypes.cpp
pollingsequence/PollingSequenceFactory.cpp
)
target_include_directories(${TARGET_NAME} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)