Skip to content

Commit d761e3f

Browse files
committed
Removes the hardware support and minor fixes
1 parent 598a3b0 commit d761e3f

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

core/mbedtls/importer/Makefile

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
###########################################################################
22
#
3-
# Copyright (c) 2013-2016, ARM Limited, All Rights Reserved
3+
# Copyright (c) 2016, ARM Limited, All Rights Reserved
44
# SPDX-License-Identifier: Apache-2.0
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -19,16 +19,15 @@
1919

2020
#
2121
# Use this file to import an mbed TLS release into mbed-OS as follows:
22-
# 1) set the MBED_TLS_RELEASE to the correct mbed TLS release tag
23-
# 2) make update
24-
# 3) make
25-
# 4) commit and push changes via git
2622
#
27-
# WARNING! To import the hardware acceleration sample code the latest revision
28-
# will be checked out from the master branch of its own repository.
23+
# 1) Set the MBED_TLS_RELEASE variable to the required mbed TLS release tag
24+
# 2) make update
25+
# 3) make
26+
# 4) commit and push changes via git
27+
#
2928

3029
# Set the mbed TLS release to import (this can/should be edited before import)
31-
MBED_TLS_RELEASE:=yotta-2.3.0
30+
MBED_TLS_RELEASE ?= mbedtls-2.2.1
3231

3332
# Translate between mbed TLS namespace and mbed namespace
3433
TARGET_PREFIX:=../
@@ -41,11 +40,6 @@ MBED_TLS_DIR:=TARGET_IGNORE/mbedtls
4140
MBED_TLS_API:=$(MBED_TLS_DIR)/include/mbedtls
4241
MBED_TLS_GIT_CFG=$(MBED_TLS_DIR)/.git/config
4342

44-
# mbed TLS hardware acceleration directory - hidden from mbed via TARGET_IGNORE
45-
MBED_TLS_HA_URL:=https://github.com/ARMmbed/mbed-tls-lib.git
46-
MBED_TLS_HA_DIR:=TARGET_IGNORE/mbed-tls-lib
47-
MBED_TLS_HA_GIT_CFG=$(MBED_TLS_HA_DIR)/.git/config
48-
4943
.PHONY: all deploy rsync mbedtls clean update
5044

5145
all: mbedtls
@@ -67,10 +61,6 @@ rsync:
6761
cp $(MBED_TLS_DIR)/LICENSE $(TARGET_PREFIX)
6862
cp $(MBED_TLS_DIR)/apache-2.0.txt $(TARGET_PREFIX)
6963
#
70-
# Copying hardware acceleration example code
71-
rm -rf $(TARGET_PREFIX)/targets
72-
mkdir -p $(TARGET_PREFIX)/targets
73-
rsync -a --delete $(MBED_TLS_HA_DIR)/targets $(TARGET_PREFIX)
7464

7565
deploy: rsync
7666
#
@@ -79,8 +69,8 @@ deploy: rsync
7969

8070
update: $(MBED_TLS_GIT_CFG) $(MBED_TLS_HA_GIT_CFG)
8171
#
82-
# Updating to latest mbed TLS library version
83-
# (If it is not an initial checkout we will start with the repo
72+
# Updating to the specified mbed TLS library version
73+
# (If it is not an initial checkout we will start with the repository
8474
# being in a detached head state)
8575
git -C $(MBED_TLS_DIR) checkout development
8676
git -C $(MBED_TLS_DIR) pull --rebase origin development
@@ -90,20 +80,11 @@ update: $(MBED_TLS_GIT_CFG) $(MBED_TLS_HA_GIT_CFG)
9080
#
9181
# Updating checked out version tag
9282
git -C $(MBED_TLS_DIR) describe --tags --abbrev=40 --dirty > $(TARGET_PREFIX)VERSION.txt
93-
#
94-
# Updating list of authors, sorted by contributions
95-
git -C $(MBED_TLS_DIR) shortlog -s -n > $(TARGET_PREFIX)AUTHORS.txt
96-
#
97-
git -C $(MBED_TLS_HA_DIR) pull --rebase origin master
9883

9984
$(MBED_TLS_GIT_CFG):
10085
rm -rf $(MBED_TLS_DIR)
10186
git clone $(MBED_TLS_URL) $(MBED_TLS_DIR)
10287

103-
$(MBED_TLS_HA_GIT_CFG):
104-
rm -rf $(MBED_TLS_HA_DIR)
105-
git clone $(MBED_TLS_HA_URL) $(MBED_TLS_HA_DIR)
106-
10788
clean:
10889
rm -f $(TARGET_PREFIX)LICENSE
10990
rm -f $(TARGET_PREFIX)apache-2.0.txt
@@ -113,4 +94,4 @@ clean:
11394
rm -rf $(TARGET_SRC)
11495
rm -rf $(TARGET_INC)
11596
rm -rf $(MBED_TLS_DIR)
116-
rm -rf $(MBED_TLS_HA_DIR)
97+

0 commit comments

Comments
 (0)