aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/ext/accelerator/cc312/CMakeLists.txt6
-rw-r--r--platform/ext/accelerator/stm/CMakeLists.txt7
2 files changed, 8 insertions, 5 deletions
diff --git a/platform/ext/accelerator/cc312/CMakeLists.txt b/platform/ext/accelerator/cc312/CMakeLists.txt
index 7da3bff410..5a6a96c1e3 100644
--- a/platform/ext/accelerator/cc312/CMakeLists.txt
+++ b/platform/ext/accelerator/cc312/CMakeLists.txt
@@ -81,7 +81,8 @@ if(BL2)
target_compile_options(bl2_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
#Include platform specific defs (registers etc)
@@ -160,7 +161,8 @@ target_compile_definitions(crypto_service_mbedcrypto
target_compile_options(crypto_service_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
#Include platform specific defs (registers etc)
diff --git a/platform/ext/accelerator/stm/CMakeLists.txt b/platform/ext/accelerator/stm/CMakeLists.txt
index 72326b481e..87bd03461e 100644
--- a/platform/ext/accelerator/stm/CMakeLists.txt
+++ b/platform/ext/accelerator/stm/CMakeLists.txt
@@ -30,7 +30,8 @@ if(BL2)
target_compile_options(bl2_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
endif()
include(${PLATFORM_DIR}/ext/target/${TFM_PLATFORM}/accelerator/CMakeLists.txt)
@@ -50,6 +51,6 @@ target_compile_definitions(crypto_service_mbedcrypto
target_compile_options(crypto_service_mbedcrypto
PRIVATE
- -Wno-unused-parameter
+ $<$<C_COMPILER_ID:GNU>:-Wno-unused-parameter>
+ $<$<C_COMPILER_ID:ARMClang>:-Wno-unused-parameter>
)
-