diff --git a/tests/Makefile b/tests/Makefile index 9254da00f2..e13eb50c7f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -57,7 +57,9 @@ endif GENERATED_CRYPTO_DATA_FILES += $(GENERATED_PSA_DATA_FILES) GENERATED_FILES = $(GENERATED_DATA_FILES) $(GENERATED_CRYPTO_DATA_FILES) -GENERATED_FILES += ../framework/tests/include/test/test_keys.h src/test_certs.h +GENERATED_FILES += ../framework/tests/include/test/test_keys.h \ + ../tf-psa-crypto/framework/tests/include/test/test_keys.h \ + src/test_certs.h # Generated files needed to (fully) run ssl-opt.sh .PHONY: ssl-opt @@ -176,6 +178,10 @@ src/test_certs.h: ../framework/scripts/generate_test_cert_macros.py \ echo " Gen $@" $(PYTHON) ../framework/scripts/generate_test_keys.py --output $@ +../tf-psa-crypto/framework/tests/include/test/test_keys.h: ../tf-psa-crypto/framework/scripts/generate_test_keys.py + echo " Gen $@" + $(PYTHON) ../tf-psa-crypto/framework/scripts/generate_test_keys.py --output $@ + TEST_OBJS_DEPS = $(wildcard include/test/*.h include/test/*/*.h) ifdef RECORD_PSA_STATUS_COVERAGE_LOG # Explicitly depend on this header because on a clean copy of the source tree, @@ -183,7 +189,8 @@ ifdef RECORD_PSA_STATUS_COVERAGE_LOG # therefore the wildcard enumeration above doesn't include it. TEST_OBJS_DEPS += ../framework/tests/include/test/instrument_record_status.h endif -TEST_OBJS_DEPS += src/test_certs.h ../framework/tests/include/test/test_keys.h +TEST_OBJS_DEPS += src/test_certs.h ../framework/tests/include/test/test_keys.h \ + ../tf-psa-crypto/framework/tests/include/test/test_keys.h # Rule to compile common test C files in framework ../framework/tests/src/%.o : ../framework/tests/src/%.c $(TEST_OBJS_DEPS)