feat(smc_fuzz): add config for FF-A fuzzing
Add tftf_config for fuzzing FF-A smc calls and also amend
run config to allow for SPM build to be used.
Run as follows:
workspace=<path to workspace> retain_paths=1 warehouse=/arm test_groups=fvp-spm,fvp-smcfuzzing,nil,nil,fvp-default:fvp-spm-tftf.fuzz tf_root=<path to>/trusted-firmware-a tftf_root=<path to>/tf-a-tests spm_root=<path to>/hafnium nfs_volume=/arm bin_mode=debug ./platform-ci/script/run_local_ci.sh
Signed-off-by: Kathleen Capella <kathleen.capella@arm.com>
Change-Id: I23b3c3585a82f21bd0faa3f56a1da33665d8b2ca
diff --git a/run_config/fvp-tftf.fuzz b/run_config/fvp-tftf.fuzz
index 505e308..e0214fe 100644
--- a/run_config/fvp-tftf.fuzz
+++ b/run_config/fvp-tftf.fuzz
@@ -5,6 +5,10 @@
# SPDX-License-Identifier: BSD-3-Clause
#
+post_tf_build() {
+ build_fip BL33="$archive/tftf.bin" BL32="$archive/secure_hafnium.bin"
+}
+
pre_tftf_build() {
source $tftf_config_file
python3 $ci_root/script/gen_smc_fuzz_setup.py -dts $tftf_root/$SMC_FUZZ_DTS -hdf $tftf_root/smc_fuzz/include/fuzz_names.h
diff --git a/tftf_config/fvp-smcfuzzing-ffa b/tftf_config/fvp-smcfuzzing-ffa
new file mode 100644
index 0000000..3e0abc9
--- /dev/null
+++ b/tftf_config/fvp-smcfuzzing-ffa
@@ -0,0 +1,8 @@
+CROSS_COMPILE=aarch64-none-elf-
+PLAT=fvp
+TESTS=smcfuzzing
+SMC_FUZZING=1
+SMC_FUZZ_DTS=smc_fuzz/dts/ffa.dts
+SMC_FUZZ_SANITY_LEVEL=3
+SMC_FUZZ_CALLS_PER_INSTANCE=1000
+SMC_FUZZER_DEBUG=1