From 0f2abd79bb5dce9297287b5b10a724fe0a74c5af Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 16 Jul 2021 12:33:36 +0200 Subject: [PATCH] size and post build printout added --- CMakeLists.txt | 10 ++++++++++ fsfw | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 622b36f..47f5409 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,7 @@ add_subdirectory(${COMMON_PATH}) # Add libraries for all sources. target_link_libraries(${TARGET_NAME} PRIVATE ${LIB_FSFW_NAME} + # Link against lwip which is part of the RTEMS BSP ${LIB_LWIP_NAME} ) @@ -142,10 +143,18 @@ target_compile_options(${TARGET_NAME} PRIVATE string(CONCAT POST_BUILD_COMMENT "Build directory: ${CMAKE_BINARY_DIR}\n" "Target OSAL: ${FSFW_OSAL}\n" + "Target RTEMS BSP: ${RTEMS_BSP}\n" "Target Build Type: ${CMAKE_BUILD_TYPE}\n" "${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") set_build_type() @@ -154,3 +163,4 @@ set_build_type() ################################################################################ include("${RTEMS_CONFIG_DIR}/RTEMSPostProjectConfig.cmake") rtems_post_project_config(${TARGET_NAME}) + diff --git a/fsfw b/fsfw index a65a184..291a8d4 160000 --- a/fsfw +++ b/fsfw @@ -1 +1 @@ -Subproject commit a65a1840838435f8ce3cfed8bc7a2adf74eac2ac +Subproject commit 291a8d4ea30b1e18aaa1236fe7a65be14c869994