Skip to content

Commit 82953a5

Browse files
simonbutcheradbridge
authored andcommitted
Parameterise repo used in Mbed TLS importer script
This commit makes the repo used to import new Mbed TLS versions into Mbed OS a parameter, to allow CI scripts (and any other script or users) to specify specific repos to use for testing.
1 parent 125ab24 commit 82953a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/mbedtls/importer/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
# Set the mbed TLS release to import (this can/should be edited before import)
3030
MBED_TLS_RELEASE ?= mbedtls-2.15.1
31+
MBED_TLS_REPO_URL ?= [email protected]:ARMmbed/mbedtls-restricted.git
3132

3233
# Translate between mbed TLS namespace and mbed namespace
3334
TARGET_PREFIX:=../
@@ -51,7 +52,6 @@ TARGET_PSA_DRIVERS:=$(TARGET_PREFIX_CRYPTO)/targets
5152
TARGET_NSPE:=$(TARGET_SRV_IMPL)/COMPONENT_NSPE
5253

5354
# mbed TLS source directory - hidden from mbed via TARGET_IGNORE
54-
MBED_TLS_URL:[email protected]:ARMmbed/mbedtls-restricted.git
5555
MBED_TLS_DIR:=TARGET_IGNORE/mbedtls
5656
MBED_TLS_API:=$(MBED_TLS_DIR)/include/mbedtls
5757
MBED_TLS_GIT_CFG=$(MBED_TLS_DIR)/.git/config
@@ -139,7 +139,7 @@ update: $(MBED_TLS_GIT_CFG) $(MBED_TLS_HA_GIT_CFG)
139139

140140
$(MBED_TLS_GIT_CFG):
141141
rm -rf $(MBED_TLS_DIR)
142-
git clone $(MBED_TLS_URL) $(MBED_TLS_DIR)
142+
git clone $(MBED_TLS_REPO_URL) $(MBED_TLS_DIR)
143143

144144
clean:
145145
rm -f $(TARGET_PREFIX)LICENSE

0 commit comments

Comments
 (0)