1
1
# ##########################################################################
2
2
#
3
- # Copyright (c) 2013- 2016, ARM Limited, All Rights Reserved
3
+ # Copyright (c) 2016, ARM Limited, All Rights Reserved
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
#
6
6
# Licensed under the Apache License, Version 2.0 (the "License"); you may
19
19
20
20
#
21
21
# 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
26
22
#
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
+ #
29
28
30
29
# 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
32
31
33
32
# Translate between mbed TLS namespace and mbed namespace
34
33
TARGET_PREFIX: =../
@@ -41,11 +40,6 @@ MBED_TLS_DIR:=TARGET_IGNORE/mbedtls
41
40
MBED_TLS_API: =$(MBED_TLS_DIR ) /include/mbedtls
42
41
MBED_TLS_GIT_CFG =$(MBED_TLS_DIR ) /.git/config
43
42
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
-
49
43
.PHONY : all deploy rsync mbedtls clean update
50
44
51
45
all : mbedtls
@@ -67,10 +61,6 @@ rsync:
67
61
cp $(MBED_TLS_DIR ) /LICENSE $(TARGET_PREFIX )
68
62
cp $(MBED_TLS_DIR ) /apache-2.0.txt $(TARGET_PREFIX )
69
63
#
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 )
74
64
75
65
deploy : rsync
76
66
#
@@ -79,8 +69,8 @@ deploy: rsync
79
69
80
70
update : $(MBED_TLS_GIT_CFG ) $(MBED_TLS_HA_GIT_CFG )
81
71
#
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
84
74
# being in a detached head state)
85
75
git -C $(MBED_TLS_DIR ) checkout development
86
76
git -C $(MBED_TLS_DIR ) pull --rebase origin development
@@ -90,20 +80,11 @@ update: $(MBED_TLS_GIT_CFG) $(MBED_TLS_HA_GIT_CFG)
90
80
#
91
81
# Updating checked out version tag
92
82
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
98
83
99
84
$(MBED_TLS_GIT_CFG ) :
100
85
rm -rf $(MBED_TLS_DIR )
101
86
git clone $(MBED_TLS_URL ) $(MBED_TLS_DIR )
102
87
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
-
107
88
clean :
108
89
rm -f $(TARGET_PREFIX ) LICENSE
109
90
rm -f $(TARGET_PREFIX ) apache-2.0.txt
@@ -113,4 +94,4 @@ clean:
113
94
rm -rf $(TARGET_SRC )
114
95
rm -rf $(TARGET_INC )
115
96
rm -rf $(MBED_TLS_DIR )
116
- rm -rf $( MBED_TLS_HA_DIR )
97
+
0 commit comments