init fsfw_hal

This commit is contained in:
Robin Müller 2021-03-23 15:30:45 +01:00
parent 18d3d7ce49
commit 29c44bfd78
6 changed files with 44 additions and 0 deletions

32
CMakeLists.txt Normal file
View File

@ -0,0 +1,32 @@
cmake_minimum_required(VERSION 3.13)
set(LIB_FSFW_HAL_NAME fsfw_hal)
set(RPI_PATH_NAME rpi)
set(STM32H7_PATH_NAME stm32h7)
add_library(${LIB_FSFW_HAL_NAME})
if(NOT LIB_FSFW_NAME)
message(ERROR "LIB_FSFW_NAME needs to be set as a linkable target")
endif()
set_property(CACHE TGT_BSP PROPERTY STRINGS
arm/stm32h743zi-nucleo
arm/raspberrypi
)
target_sources(${LIB_FSFW_HAL_NAME} PRIVATE
Dummy.cpp
)
if(TGT_BSP MATCHES "arm/raspberrypi")
add_subdirectory(${RPI_PATH_NAME})
endif()
if(TGT_BSP MATCHES "arm/stm32h743zi-nucleo")
add_subdirectory(${STM32H7_PATH_NAME})
endif()
target_link_libraries(${LIB_FSFW_HAL_NAME}
${LIB_FSFW_NAME}
)

0
Dummy.cpp Normal file
View File

10
examples/CMakeLists.txt Normal file
View File

@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.13)
set(LIB_FSFW_HAL_NAME fsfw_hal)
add_library(${LIB_FSFW_HAL_NAME})
if(NOT LIB_FSFW_NAME)
message(ERROR "LIB_FSFW_NAME needs to be set as a linkable target")
endif()
target_link_libraries(${LIB_FSFW_NAME})

1
host/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@

1
rpi/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@

0
stm32h7/CMakeLists.txt Normal file
View File