diff options
-rw-r--r-- | interface/CMakeLists.txt | 13 | ||||
-rwxr-xr-x | platform/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 13 deletions
diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 3af7daa844..37ecfbc56d 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -15,7 +15,7 @@ if (TFM_MULTI_CORE_TOPOLOGY) tfm_toolchain_reload_compiler() # The platform target is created in this directory/file so that it has the # same settings as the main ns target. - add_library(platform_ns STATIC) + add_library(platform_ns STATIC EXCLUDE_FROM_ALL) endif() ###################### PSA interface (header only) ############################# @@ -51,17 +51,6 @@ target_compile_definitions(psa_interface $<$<BOOL:${FORWARD_PROT_MSG}>:FORWARD_PROT_MSG=${FORWARD_PROT_MSG}> ) -# A dummy interface library to make sure platform NS build can proceed when NS -# is disabled, if a platform doesn't use NS flag to control platform NS build. -if (NOT NS) - add_library(tfm_ns_interface INTERFACE) - - target_link_libraries(tfm_ns_interface - INTERFACE - psa_interface - ) -endif() - ###################### PSA api (S lib) ######################################### target_sources(tfm_secure_api diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt index f7fd6ef19a..6cd9befdfb 100755 --- a/platform/CMakeLists.txt +++ b/platform/CMakeLists.txt @@ -14,7 +14,7 @@ add_library(platform_region_defs INTERFACE) # under the multicore topology, NS is declared in the same place as the PSA # interface so that it picks up the compiler definitions for the NS CPU if(NOT TFM_MULTI_CORE_TOPOLOGY) - add_library(platform_ns STATIC) + add_library(platform_ns STATIC EXCLUDE_FROM_ALL) endif() if (BL2) |