summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKshitij Sisodia <kshitij.sisodia@arm.com>2021-07-23 17:43:54 +0100
committerKshitij Sisodia <kshitij.sisodia@arm.com>2021-07-23 17:43:54 +0100
commit69a4745c5178b0a1126a98bf077e2fd65241e1c6 (patch)
tree81ce4d6c3e0c3ea445b94b6f4f0d8ad4e182c8fb /scripts
parent6fded05ade1b880c2b18dba594f39744c38eeb50 (diff)
downloadml-embedded-evaluation-kit-69a4745c5178b0a1126a98bf077e2fd65241e1c6.tar.gz
Generating bin files for simple_platform.
Breaking down the elf(axf) file into bin blobs for the simple_platform target too. Change-Id: Ie909508433ef03f8b4a32e04bc69353aed0d0849
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/bare-metal-sources.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/cmake/bare-metal-sources.cmake b/scripts/cmake/bare-metal-sources.cmake
index 2bfe616..95950df 100644
--- a/scripts/cmake/bare-metal-sources.cmake
+++ b/scripts/cmake/bare-metal-sources.cmake
@@ -65,17 +65,19 @@ if (TARGET_PLATFORM STREQUAL mps3)
# For deployment on the MPS3 FPGA platform, we need to produce
# two bin files - one that is loaded into the ITCM, and another
# that is loaded into the DDR region.
- set(MPS3_SECTION_PATTERNS "*.at_itcm" "*.at_ddr")
- set(MPS3_OUTPUT_BIN_NAMES "itcm.bin" "ddr.bin")
+ set(LINKER_SECTION_TAGS "*.at_itcm" "*.at_ddr")
+ set(LINKER_OUTPUT_BIN_TAGS "itcm.bin" "ddr.bin")
set(MPS3_FPGA_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/scripts/${TARGET_PLATFORM}/${TARGET_SUBSYSTEM}/images.txt")
else ()
message(FATAL_ERROR "Non compatible target subsystem: ${TARGET_SUBSYSTEM}")
endif ()
elseif (TARGET_PLATFORM STREQUAL simple_platform)
- set(BSP_PACKAGE_DIR "${PLAT_HAL}/bsp/bsp-packs/${TARGET_PLATFORM}")
- set(LINKER_SCRIPT_NAME "${TARGET_PLATFORM}")
+ set(BSP_PACKAGE_DIR "${PLAT_HAL}/bsp/bsp-packs/${TARGET_PLATFORM}")
+ set(LINKER_SCRIPT_NAME "${TARGET_PLATFORM}")
include(${MEM_PROFILES_SRC_DIR}/${TARGET_PLATFORM}.cmake)
- set(OPTIONAL_FLAGS "${OPTIONAL_FLAGS}")
+ set(OPTIONAL_FLAGS "${OPTIONAL_FLAGS}")
+ set(LINKER_SECTION_TAGS "*.at_itcm" "*.at_ddr")
+ set(LINKER_OUTPUT_BIN_TAGS "itcm.bin" "ddr.bin")
else ()
message(FATAL_ERROR "Non compatible target platform ${TARGET_PLATFORM}")
endif ()