diff options
author | Satish Kumar <satish.kumar01@arm.com> | 2021-07-22 16:32:15 +0100 |
---|---|---|
committer | David Hu <david.hu@arm.com> | 2021-10-14 10:14:43 +0200 |
commit | fab992264d7fb5152757db62b24ab33662ba963c (patch) | |
tree | 6031c3c130f8c76b5cac37a9ca1ad2c983882588 /platform/ext | |
parent | e5b127a9f482f4c6f3ed61a5a59b6da930883bf1 (diff) | |
download | trusted-firmware-m-fab992264d7fb5152757db62b24ab33662ba963c.tar.gz |
Build: variable to differentiate FVP and FPGA build
PLATFORM_IS_FVP macro is declared to differentiate FVP and FPGA
build. The variable is defined globally to make it common across
all platforms.
Change-Id: Icc3af245eba679a0b967cdac3b6b3800d2ab8f3b
Signed-off-by: Satish Kumar <satish.kumar01@arm.com>
Diffstat (limited to 'platform/ext')
-rw-r--r-- | platform/ext/target/arm/diphda/CMakeLists.txt | 10 | ||||
-rw-r--r-- | platform/ext/target/arm/diphda/bl1/CMakeLists.txt | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/platform/ext/target/arm/diphda/CMakeLists.txt b/platform/ext/target/arm/diphda/CMakeLists.txt index 26fe5d2d53..c6c62733fa 100644 --- a/platform/ext/target/arm/diphda/CMakeLists.txt +++ b/platform/ext/target/arm/diphda/CMakeLists.txt @@ -73,6 +73,11 @@ target_link_libraries(platform_s tfm_spm ) +target_compile_definitions(platform_s + PRIVATE + $<$<BOOL:${PLATFORM_IS_FVP}>:PLATFORM_IS_FVP> +) + #========================= Platform BL2 =======================================# set(BL2_SOURCE ${CMAKE_SOURCE_DIR}/bl2) @@ -90,6 +95,11 @@ target_sources(platform_bl2 bl2_boot_hal.c ) +target_compile_definitions(platform_bl2 + PRIVATE + $<$<BOOL:${PLATFORM_IS_FVP}>:PLATFORM_IS_FVP> +) + target_sources(bl2 PRIVATE bl2_flash_map.c diff --git a/platform/ext/target/arm/diphda/bl1/CMakeLists.txt b/platform/ext/target/arm/diphda/bl1/CMakeLists.txt index 787f571349..64dd4f21ef 100644 --- a/platform/ext/target/arm/diphda/bl1/CMakeLists.txt +++ b/platform/ext/target/arm/diphda/bl1/CMakeLists.txt @@ -105,6 +105,7 @@ target_compile_definitions(bl1_main MCUBOOT_IMAGE_NUMBER=${BL1_IMAGE_NUMBER} BL1 BL2 + $<$<BOOL:${PLATFORM_IS_FVP}>:PLATFORM_IS_FVP> ) # Configurations based on bl2/CMakeLists.txt |