size and post build printout added

This commit is contained in:
Robin Müller 2021-07-16 12:33:36 +02:00
parent fdc10c9f25
commit 0f2abd79bb
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 11 additions and 1 deletions

View File

@ -98,6 +98,7 @@ add_subdirectory(${COMMON_PATH})
# Add libraries for all sources. # Add libraries for all sources.
target_link_libraries(${TARGET_NAME} PRIVATE target_link_libraries(${TARGET_NAME} PRIVATE
${LIB_FSFW_NAME} ${LIB_FSFW_NAME}
# Link against lwip which is part of the RTEMS BSP
${LIB_LWIP_NAME} ${LIB_LWIP_NAME}
) )
@ -142,10 +143,18 @@ target_compile_options(${TARGET_NAME} PRIVATE
string(CONCAT POST_BUILD_COMMENT string(CONCAT POST_BUILD_COMMENT
"Build directory: ${CMAKE_BINARY_DIR}\n" "Build directory: ${CMAKE_BINARY_DIR}\n"
"Target OSAL: ${FSFW_OSAL}\n" "Target OSAL: ${FSFW_OSAL}\n"
"Target RTEMS BSP: ${RTEMS_BSP}\n"
"Target Build Type: ${CMAKE_BUILD_TYPE}\n" "Target Build Type: ${CMAKE_BUILD_TYPE}\n"
"${TARGET_STRING}" "${TARGET_STRING}"
) )
add_custom_command(
TARGET ${TARGET_NAME}
POST_BUILD
COMMAND ${CMAKE_SIZE} ${TARGET_NAME}
COMMENT ${POST_BUILD_COMMENT}
)
include("${RTEMS_CONFIG_DIR}/BuildType.cmake") include("${RTEMS_CONFIG_DIR}/BuildType.cmake")
set_build_type() set_build_type()
@ -154,3 +163,4 @@ set_build_type()
################################################################################ ################################################################################
include("${RTEMS_CONFIG_DIR}/RTEMSPostProjectConfig.cmake") include("${RTEMS_CONFIG_DIR}/RTEMSPostProjectConfig.cmake")
rtems_post_project_config(${TARGET_NAME}) rtems_post_project_config(${TARGET_NAME})

2
fsfw

@ -1 +1 @@
Subproject commit a65a1840838435f8ce3cfed8bc7a2adf74eac2ac Subproject commit 291a8d4ea30b1e18aaa1236fe7a65be14c869994