This repository was archived by the owner on Dec 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +19
-41
lines changed Expand file tree Collapse file tree 9 files changed +19
-41
lines changed Original file line number Diff line number Diff line change 7
7
[submodule "third_party/mosquitto "]
8
8
path = third_party/mosquitto
9
9
url = https://github.com/eclipse/mosquitto.git
10
- [submodule "third_party/http-parser "]
11
- path = third_party/http-parser
12
- url = https://github.com/nodejs/http-parser.git
13
- [submodule "third_party/mbedtls "]
14
- path = third_party/mbedtls
15
- url = https://github.com/ARMmbed/mbedtls.git
Original file line number Diff line number Diff line change @@ -2,12 +2,8 @@ DCURL_DIR := third_party/dcurl
2
2
DCURL_LIB := $(DCURL_DIR ) /build/libdcurl.so
3
3
MOSQUITTO_DIR := third_party/mosquitto
4
4
MOSQUITTO_LIB := $(MOSQUITTO_DIR ) /lib/libmosquitto.so.1
5
- MBEDTLS_DIR := third_party/mbedtls
6
- MBEDTLS_LIB := $(MBEDTLS_PATH ) /library/libmbedx509.so $(MBEDTLS_PATH ) /library/libmbedtls.so $(MBEDTLS_PATH ) /library/libmbedcrypto.so
7
- HTTPPARSER_DIR := third_party/http-parser
8
- HTTPPARSER_LIB := $(HTTPPARSER_DIR ) /libhttp_parser.so
9
5
PEM_DIR = pem
10
- DEPS += $(DCURL_LIB ) $( HTTPPARSER_LIB ) $( MBEDTLS_LIB )
6
+ DEPS += $(DCURL_LIB )
11
7
PEM := $(PEM_DIR ) /cert.pem
12
8
13
9
all : $(DEPS ) cert
@@ -27,14 +23,6 @@ $(MOSQUITTO_LIB): $(MOSQUITTO_DIR)
27
23
@echo
28
24
$(MAKE ) -C $^ WITH_DOCS=no
29
25
30
- $(HTTPPARSER_LIB ) : $(HTTPPARSER_DIR )
31
- git submodule update --init $^
32
- $(MAKE ) -C $^ library
33
-
34
- $(MBEDTLS_LIB ) : $(MBEDTLS_DIR )
35
- git submodule update --init $^
36
- $(MAKE ) -C $^ SHARED=1 lib
37
-
38
26
cert : check_pem
39
27
@xxd -i $(PEM ) > $(PEM_DIR ) /ca_crt.inc
40
28
@sed -E \
52
40
clean :
53
41
$(MAKE ) -C $(DCURL_DIR ) clean
54
42
$(MAKE ) -C $(MOSQUITTO_DIR ) clean
55
- $(MAKE ) -C $(HTTPPARSER_DIR ) clean
56
- $(MAKE ) -C $(MBEDTLS_DIR ) clean
57
-
58
43
59
44
distclean : clean
60
45
$(RM ) -r $(DCURL_DIR )
Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ git_repository(
25
25
tag = "v0.9.0" ,
26
26
)
27
27
28
+ new_git_repository (
29
+ name = "mbedtls_2_16_6" ,
30
+ build_file = "//third_party:mbedtls.BUILD" ,
31
+ remote = "https://github.com/ARMmbed/mbedtls.git" ,
32
+ tag = "mbedtls-2.16.6" ,
33
+ )
34
+
28
35
load ("@rules_iota//:defs.bzl" , "iota_deps" )
29
36
load ("@io_bazel_rules_docker//repositories:repositories.bzl" , container_repositories = "repositories" )
30
37
Original file line number Diff line number Diff line change @@ -18,17 +18,3 @@ cc_library(
18
18
"mosquitto/lib/mqtt_protocol.h" ,
19
19
],
20
20
)
21
-
22
- cc_library (
23
- name = "http-parser" ,
24
- srcs = glob (["http-parser/*.so.*" ]),
25
- hdrs = ["http-parser/http_parser.h" ],
26
- includes = ["http-parser" ],
27
- )
28
-
29
- cc_library (
30
- name = "mbedtls" ,
31
- srcs = glob (["mbedtls/library/*.so.*" ]),
32
- hdrs = glob (["mbedtls/include/mbedtls/*.h" ]) + glob (["mbedtls/include/psa/*.h" ]),
33
- includes = ["mbedtls/include" ],
34
- )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ cc_library(
2
+ name = "mbedtls_2_16_6",
3
+ srcs = glob(["library/*.c"]),
4
+ hdrs = glob(["include/mbedtls/*.h"]) + glob(["include/psa/*.h"]),
5
+ include_prefix = "mbedtls",
6
+ strip_include_prefix = "include/mbedtls",
7
+ visibility = ["//visibility:public"],
8
+ )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ cc_library(
50
50
hdrs = ["cipher.h" ],
51
51
deps = [
52
52
"//common:ta_errors" ,
53
- "//third_party:mbedtls " ,
53
+ "@mbedtls_2_16_6 " ,
54
54
],
55
55
)
56
56
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ cc_library(
9
9
deps = [
10
10
"//common" ,
11
11
"//pem:cert" ,
12
- "//third_party:http-parser " ,
13
- "//third_party:mbedtls " ,
12
+ "@http_parser " ,
13
+ "@mbedtls_2_16_6 " ,
14
14
],
15
15
)
You can’t perform that action at this time.
0 commit comments