1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# -*-makefile-*-
#
# Copyright (C) 2019 by Bjoern Esser <bes@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_MBEDTLS) += mbedtls
#
# Paths and names
#
MBEDTLS_VERSION := 2.16.3
MBEDTLS_MD5 := 90ce7c7a001d2514410280706b3ab1a7
MBEDTLS := mbedtls-$(MBEDTLS_VERSION)
MBEDTLS_SUFFIX := tgz
MBEDTLS_URL := https://tls.mbed.org/download/$(MBEDTLS)-apache.$(MBEDTLS_SUFFIX)
MBEDTLS_SOURCE := $(SRCDIR)/$(MBEDTLS).$(MBEDTLS_SUFFIX)
MBEDTLS_DIR := $(BUILDDIR)/$(MBEDTLS)
MBEDTLS_LICENSE := Apache-2.0
MBEDTLS_LICENSE_FILES := file://apache-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# cmake
#
MBEDTLS_CONF_TOOL := cmake
MBEDTLS_CONF_OPT := \
$(CROSS_CMAKE_USR) \
-DENABLE_PROGRAMS=OFF \
-DENABLE_TESTING=OFF \
-DENABLE_ZLIB_SUPPORT=ON \
-DINSTALL_MBEDTLS_HEADERS=ON \
-DLINK_WITH_PTHREAD=ON \
-DUNSAFE_BUILD=OFF \
-DUSE_PKCS11_HELPER_LIBRARY=OFF \
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
-DUSE_STATIC_MBEDTLS_LIBRARY=OFF
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/mbedtls.targetinstall:
@$(call targetinfo)
@$(call install_init, mbedtls)
@$(call install_fixup, mbedtls,PRIORITY,optional)
@$(call install_fixup, mbedtls,SECTION,base)
@$(call install_fixup, mbedtls,AUTHOR,"Bjoern Esser <bes@pengutronix.de>")
@$(call install_fixup, mbedtls,DESCRIPTION,missing)
@$(call install_lib, mbedtls, 0, 0, 0644, libmbedcrypto)
@$(call install_lib, mbedtls, 0, 0, 0644, libmbedtls)
@$(call install_lib, mbedtls, 0, 0, 0644, libmbedx509)
@$(call install_finish, mbedtls)
@$(call touch)
|