RSE: Conditionally link shared symbols in bl1 test
When TEST_BL1_1 or TEST_BL1_2 are disabled, don't try to link their
respective shared symbol files into the test executable
Change-Id: I8f0bb3676d119463c61d6064a6a024299986347f
Signed-off-by: Raef Coles <raef.coles@arm.com>
diff --git a/platform/ext/target/arm/rse/common/tests/rse_test_executable/CMakeLists.txt b/platform/ext/target/arm/rse/common/tests/rse_test_executable/CMakeLists.txt
index 86ad7f7..54bce55 100644
--- a/platform/ext/target/arm/rse/common/tests/rse_test_executable/CMakeLists.txt
+++ b/platform/ext/target/arm/rse/common/tests/rse_test_executable/CMakeLists.txt
@@ -92,7 +92,15 @@
# The provisioning code should link the ROM lib from ROM, not from SRAM. This
# variable set only applies in this file scope
set(CODE_SHARING_INPUT_FILE_SUFFIX ${CODE_SHARING_OUTPUT_FILE_SUFFIX})
-target_link_shared_code(rse_bl1_tests
- bl1_1
- bl1_2
-)
+
+if (TEST_BL1_1)
+ target_link_shared_code(rse_bl1_tests
+ bl1_1
+ )
+endif()
+
+if (TEST_BL1_2)
+ target_link_shared_code(rse_bl1_tests
+ bl1_2
+ )
+endif()