refactor(smc_fuzzing): add multi cpu capability
Using the MULTI_CPU_SMC_FUZZER option in tftf config
multiple CPU's will be enabled to produce fuzzing SMC
calls for a given platform. They will all use the
same device tree file for random execution of the calls
Signed-off-by: mardyk01 <mark.dykes@arm.com>
Change-Id: Ic093aea69e577a1b678cf572149550881c0791b0
diff --git a/tftf/tests/tests-smcfuzzing.mk b/tftf/tests/tests-smcfuzzing.mk
index b2317b9..c3d4522 100644
--- a/tftf/tests/tests-smcfuzzing.mk
+++ b/tftf/tests/tests-smcfuzzing.mk
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2020, Arm Limited. All rights reserved.
+# Copyright (c) 2023, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -34,11 +34,14 @@
$(eval $(call add_define,TFTF_DEFINES,SMC_FUZZ_SEEDS))
$(eval $(call add_define,TFTF_DEFINES,SMC_FUZZ_INSTANCE_COUNT))
$(eval $(call add_define,TFTF_DEFINES,SMC_FUZZ_CALLS_PER_INSTANCE))
+ifeq ($(MULTI_CPU_SMC_FUZZER),1)
+$(eval $(call add_define,TFTF_DEFINES,MULTI_CPU_SMC_FUZZER))
+endif
TESTS_SOURCES += \
$(addprefix smc_fuzz/src/, \
randsmcmod.c \
smcmalloc.c \
fifo3d.c \
- runtestfunction.c \
+ runtestfunction_helpers.c \
)