Skip to content

Commit b034418

Browse files
Azim KhanAzim Khan
authored andcommitted
Add new target in mbedtls importer Makefile for mbedtls tests
1 parent e850355 commit b034418

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

features/mbedtls/importer/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ MBED_TLS_RELEASE ?= mbedtls-2.5.0
3333
TARGET_PREFIX:=../
3434
TARGET_SRC:=$(TARGET_PREFIX)src
3535
TARGET_INC:=$(TARGET_PREFIX)inc
36+
TARGET_TESTS:=$(TARGET_PREFIX)TESTS
3637

3738
# mbed TLS source directory - hidden from mbed via TARGET_IGNORE
3839
MBED_TLS_URL:=https://github.com/ARMmbed/mbedtls-restricted.git
@@ -70,6 +71,15 @@ deploy: rsync
7071
# Copy the trimmed config that does not require entropy source
7172
cp $(MBED_TLS_DIR)/configs/config-no-entropy.h $(TARGET_INC)/mbedtls/.
7273

74+
deploy-tests: deploy
75+
#
76+
# Copying mbed TLS tests...
77+
rm -rf $(TARGET_TESTS)
78+
mkdir -p $(TARGET_TESTS)
79+
rsync -a --delete $(MBED_TLS_DIR)/tests/TESTS/ $(TARGET_TESTS)
80+
mkdir -p $(TARGET_TESTS)/host_tests
81+
cp $(MBED_TLS_DIR)/tests/scripts/mbedtls_test.py $(TARGET_TESTS)/host_tests/
82+
7383
update: $(MBED_TLS_GIT_CFG) $(MBED_TLS_HA_GIT_CFG)
7484
#
7585
# Updating to the specified mbed TLS library version

0 commit comments

Comments
 (0)