Skip to content

Commit 08909c9

Browse files
Merge pull request #9852 from ronald-cron-arm/tf-psa-crypto-as-submodule
Move from tf-psa-crypto directory to tf-psa-crypto submodule
2 parents 8ef9323 + 8064c02 commit 08909c9

File tree

510 files changed

+22
-266356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

510 files changed

+22
-266356
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "framework"]
22
path = framework
33
url = https://github.com/Mbed-TLS/mbedtls-framework
4+
[submodule "tf-psa-crypto"]
5+
path = tf-psa-crypto
6+
url = https://github.com/Mbed-TLS/TF-PSA-Crypto.git

.readthedocs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# Required
66
version: 2
77

8-
# Include the framework submodule in the build
8+
# Include all submodules in the build
99
submodules:
10-
include:
11-
- framework
10+
include: all
11+
recursive: true
1212

1313
# Set the version of Python and other tools you might need
1414
build:

ChangeLog.d/repo-split.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Changes
2+
* Move the crypto part of the library (content of tf-psa-crypto directory)
3+
from the Mbed TLS to the TF-PSA-Crypto repository. The crypto code and
4+
tests development will now occur in TF-PSA-Crypto, which Mbed TLS
5+
references as a Git submodule.

scripts/make_generated_files.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ python framework\scripts\generate_config_tests.py --directory tf-psa-crypto\test
3030
python framework\scripts\generate_ecp_tests.py --directory tf-psa-crypto\tests\suites || exit /b 1
3131
python framework\scripts\generate_psa_tests.py --directory tf-psa-crypto\tests\suites || exit /b 1
3232
python framework\scripts\generate_test_keys.py --output framework\tests\include\test\test_keys.h || exit /b 1
33+
python tf-psa-crypto\framework\scripts\generate_test_keys.py --output tf-psa-crypto\framework\tests\include\test\test_keys.h || exit /b 1
3334
python framework\scripts\generate_test_cert_macros.py --output tests\src\test_certs.h || exit /b 1
3435
python framework\scripts\generate_tls13_compat_tests.py || exit /b 1

tests/Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ endif
5757
GENERATED_CRYPTO_DATA_FILES += $(GENERATED_PSA_DATA_FILES)
5858

5959
GENERATED_FILES = $(GENERATED_DATA_FILES) $(GENERATED_CRYPTO_DATA_FILES)
60-
GENERATED_FILES += ../framework/tests/include/test/test_keys.h src/test_certs.h
60+
GENERATED_FILES += ../framework/tests/include/test/test_keys.h \
61+
../tf-psa-crypto/framework/tests/include/test/test_keys.h \
62+
src/test_certs.h
6163

6264
# Generated files needed to (fully) run ssl-opt.sh
6365
.PHONY: ssl-opt
@@ -176,14 +178,19 @@ src/test_certs.h: ../framework/scripts/generate_test_cert_macros.py \
176178
echo " Gen $@"
177179
$(PYTHON) ../framework/scripts/generate_test_keys.py --output $@
178180

181+
../tf-psa-crypto/framework/tests/include/test/test_keys.h: ../tf-psa-crypto/framework/scripts/generate_test_keys.py
182+
echo " Gen $@"
183+
$(PYTHON) ../tf-psa-crypto/framework/scripts/generate_test_keys.py --output $@
184+
179185
TEST_OBJS_DEPS = $(wildcard include/test/*.h include/test/*/*.h)
180186
ifdef RECORD_PSA_STATUS_COVERAGE_LOG
181187
# Explicitly depend on this header because on a clean copy of the source tree,
182188
# it doesn't exist yet and must be generated as part of the build, and
183189
# therefore the wildcard enumeration above doesn't include it.
184190
TEST_OBJS_DEPS += ../framework/tests/include/test/instrument_record_status.h
185191
endif
186-
TEST_OBJS_DEPS += src/test_certs.h ../framework/tests/include/test/test_keys.h
192+
TEST_OBJS_DEPS += src/test_certs.h ../framework/tests/include/test/test_keys.h \
193+
../tf-psa-crypto/framework/tests/include/test/test_keys.h
187194

188195
# Rule to compile common test C files in framework
189196
../framework/tests/src/%.o : ../framework/tests/src/%.c $(TEST_OBJS_DEPS)

tf-psa-crypto

Submodule tf-psa-crypto added at 26bc88c

tf-psa-crypto/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

tf-psa-crypto/CMakeLists.txt

Lines changed: 0 additions & 525 deletions
This file was deleted.

tf-psa-crypto/DartConfiguration.tcl

Lines changed: 0 additions & 4 deletions
This file was deleted.

tf-psa-crypto/cmake/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)