Build: Use the TARGET_PLATFORM_PATH
Change-Id: I4b33600ca6ccdaff60994a498123107054eaa62e
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/test/secure_fw/secure_tests.cmake b/test/secure_fw/secure_tests.cmake
index c5f6dd5..c942c28 100644
--- a/test/secure_fw/secure_tests.cmake
+++ b/test/secure_fw/secure_tests.cmake
@@ -9,8 +9,8 @@
# Since the main test directory is a NS dir, this subdir is specifically made a
# secure directory as it build the secure side tests and services
-if (EXISTS ${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload_ns.cmake)
- include(${CMAKE_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/preload.cmake)
+if (EXISTS ${TARGET_PLATFORM_PATH}/preload_ns.cmake)
+ include(${TARGET_PLATFORM_PATH}/preload.cmake)
tfm_toolchain_reload_compiler()
endif()