aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Jaouen <michel.jaouen@st.com>2020-06-25 00:16:10 +0200
committerMichel Jaouen <michel.jaouen@st.com>2020-07-03 11:48:43 +0200
commit112aecd04fb7ce0794d0328950e86993639d2e83 (patch)
treeada1856363e4838d3a7e46ca30e1a5c39716ae90
parent9f350e97d1299f751bb07ac97e4c297a4f81c1c4 (diff)
downloadtrusted-firmware-m-112aecd04fb7ce0794d0328950e86993639d2e83.tar.gz
platform: stm32l5xx: Enable RAM_FS by default unless BUILD_FLASH is set
Since RAM_FS is now disabled by default. RAM_FS is force if BUILD_FLASH is not set. Due to internal flash constraint regression test cannot be performed with RAM_FS disabled. Change-Id: I304b694202d6059575fff97828b11164790a9496 Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
-rw-r--r--platform/ext/target/stm/stm32l5xx/nucleo_l552ze_q.cmake5
-rw-r--r--platform/ext/target/stm/stm32l5xx/stm32l562e_dk.cmake4
2 files changed, 8 insertions, 1 deletions
diff --git a/platform/ext/target/stm/stm32l5xx/nucleo_l552ze_q.cmake b/platform/ext/target/stm/stm32l5xx/nucleo_l552ze_q.cmake
index b828cd6ff..d501d9da0 100644
--- a/platform/ext/target/stm/stm32l5xx/nucleo_l552ze_q.cmake
+++ b/platform/ext/target/stm/stm32l5xx/nucleo_l552ze_q.cmake
@@ -16,7 +16,8 @@ set(MBEDCRYPTO_DEBUG OFF)
set(MCUBOOT_IMAGE_NUMBER 2)
set(TFM_ENABLE_IRQ_TEST OFF)
set(TFM_ENABLE_PERIPH_ACCESS_TEST OFF)
-
+set(ITS_RAM_FS ON)
+set(PS_RAM_FS ON)
add_definitions("-DSTM32L552xx")
# force RDP level 0 usage
@@ -97,7 +98,9 @@ elseif(BUILD_FLASH)
# to be sure the PS service knows that when it starts the PS area does not contain any
# valid PS flash layout and it needs to create one.
set(ITS_CREATE_FLASH_LAYOUT ON)
+ set(ITS_RAM_FS OFF)
set(PS_CREATE_FLASH_LAYOUT ON)
+ set(PS_RAM_FS OFF)
embedded_include_directories(PATH "${PLATFORM_DIR}/driver" ABSOLUTE)
endif()
diff --git a/platform/ext/target/stm/stm32l5xx/stm32l562e_dk.cmake b/platform/ext/target/stm/stm32l5xx/stm32l562e_dk.cmake
index abfd91b21..eb069c48f 100644
--- a/platform/ext/target/stm/stm32l5xx/stm32l562e_dk.cmake
+++ b/platform/ext/target/stm/stm32l5xx/stm32l562e_dk.cmake
@@ -16,6 +16,8 @@ set(MBEDCRYPTO_DEBUG OFF)
set(MCUBOOT_IMAGE_NUMBER 2)
set(TFM_ENABLE_IRQ_TEST OFF)
set(TFM_ENABLE_PERIPH_ACCESS_TEST OFF)
+set(ITS_RAM_FS ON)
+set(PS_RAM_FS ON)
add_definitions("-DSTM32L562xx")
# force RDP level 0 usage
@@ -95,7 +97,9 @@ elseif(BUILD_FLASH)
# to be sure the PS service knows that when it starts the PS area does not contain any
# valid PS flash layout and it needs to create one.
set(ITS_CREATE_FLASH_LAYOUT ON)
+ set(ITS_RAM_FS OFF)
set(PS_CREATE_FLASH_LAYOUT ON)
+ set(PS_RAM_FS OFF)
embedded_include_directories(PATH "${PLATFORM_DIR}/driver" ABSOLUTE)
endif()