update preproject config

This commit is contained in:
Robin Müller 2021-07-16 11:23:42 +02:00
parent a5949e5427
commit ce4a5ec7d1
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 5 additions and 7 deletions

View File

@ -19,7 +19,8 @@ set(STM32_ADD_NETWORKING_CODE OFF)
set(FSFW_HAL_ADD_STM32H7 ON)
# This call has to come before the project call
set(CMAKE_TOOLCHAIN_FILE ${STM32_CMAKE_PATH}/cmake/stm32_gcc.cmake)
include("${CMAKE_SCRIPT_PATH}/PreProjectConfig.cmake")
# Project Name
project(fsfw-example-stm32h7-rtems ASM C CXX)
@ -134,12 +135,6 @@ target_compile_options(${TARGET_NAME} PRIVATE
${WARNING_FLAGS}
)
if(TGT_BSP)
set(TARGET_STRING "Target BSP: ${TGT_BSP}")
else()
set(TARGET_STRING "Target BSP: Hosted")
endif()
string(CONCAT POST_BUILD_COMMENT
"Build directory: ${CMAKE_BINARY_DIR}\n"
"Target OSAL: ${FSFW_OSAL}\n"

View File

@ -42,3 +42,6 @@ set(CMAKE_TOOLCHAIN_FILE
${RTEMS_CONFIG_DIR}/RTEMSToolchain.cmake
PARENT_SCOPE
)
set(RTEMS_BSP ${RTEMS_BSP} CACHE STRING "RTEMS BSP")
set(RTEMS_PREFIX ${RTEMS_PREFIX} CACHE STRING "RTEMS Prefix")