From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3cse-0007nt-JW for ptxdist@pengutronix.de; Mon, 17 Feb 2020 10:39:56 +0100 Received: from mol by dude02.lab.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1j3cse-0004Xj-Br for ptxdist@pengutronix.de; Mon, 17 Feb 2020 10:39:56 +0100 Date: Mon, 17 Feb 2020 10:39:56 +0100 From: Michael Olbrich Message-ID: <20200217093956.GH21732@pengutronix.de> References: <20200205104241.19603-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200205104241.19603-1-u.oelmann@pengutronix.de> Subject: Re: [ptxdist] [PATCH v5 1/3] mbedtls: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Wed, Feb 05, 2020 at 11:42:39AM +0100, Ulrich =D6lmann wrote: > From: Bj=F6rn Esser > = > mbed TLS (formerly known as PolarSSL) makes it trivially easy > for developers to include cryptographic and SSL/TLS capabilities > in their (embedded) products, facilitating this functionality > with a minimal coding footprint. > = > Unfortunately the upcoming open62541 package cannot be built > against OpenSSL. To enable its SSL functionality mbed TLS is > needed. > = > Signed-off-by: Bj=F6rn Esser > [uol: adjusted commit message] > Signed-off-by: Ulrich =D6lmann > --- > v2 --> v3: adjusted commit message Not your fault, but needs to be fixed: libssh2 now uses /usr/lib/libmbedcrypto.so.3 without depending on it :-/ Michael > = > rules/mbedtls.in | 13 +++++++++ > rules/mbedtls.make | 66 ++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 79 insertions(+) > create mode 100644 rules/mbedtls.in > create mode 100644 rules/mbedtls.make > = > diff --git a/rules/mbedtls.in b/rules/mbedtls.in > new file mode 100644 > index 000000000000..a0d58dbd5468 > --- /dev/null > +++ b/rules/mbedtls.in > @@ -0,0 +1,13 @@ > +## SECTION=3Dsystem_libraries > + > +config MBEDTLS > + tristate > + prompt "mbedtls" > + select HOST_CMAKE > + select LIBC_PTHREAD > + select ZLIB > + help > + mbed TLS (formerly known as PolarSSL) makes it trivially easy > + for developers to include cryptographic and SSL/TLS capabilities > + in their (embedded) products, facilitating this functionality > + with a minimal coding footprint. > diff --git a/rules/mbedtls.make b/rules/mbedtls.make > new file mode 100644 > index 000000000000..0086492fc029 > --- /dev/null > +++ b/rules/mbedtls.make > @@ -0,0 +1,66 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2019 by Bjoern Esser > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_MBEDTLS) +=3D mbedtls > + > +# > +# Paths and names > +# > +MBEDTLS_VERSION :=3D 2.16.3 > +MBEDTLS_MD5 :=3D 90ce7c7a001d2514410280706b3ab1a7 > +MBEDTLS :=3D mbedtls-$(MBEDTLS_VERSION) > +MBEDTLS_SUFFIX :=3D tgz > +MBEDTLS_URL :=3D https://tls.mbed.org/download/$(MBEDTLS)-apache.$(MBED= TLS_SUFFIX) > +MBEDTLS_SOURCE :=3D $(SRCDIR)/$(MBEDTLS).$(MBEDTLS_SUFFIX) > +MBEDTLS_DIR :=3D $(BUILDDIR)/$(MBEDTLS) > +MBEDTLS_LICENSE :=3D Apache-2.0 > +MBEDTLS_LICENSE_FILES :=3D file://apache-2.0.txt;md5=3D3b83ef96387f14655= fc854ddc3c6bd57 > + > +# ----------------------------------------------------------------------= ------ > +# Prepare > +# ----------------------------------------------------------------------= ------ > + > +# > +# cmake > +# > +MBEDTLS_CONF_TOOL :=3D cmake > +MBEDTLS_CONF_OPT :=3D \ > + $(CROSS_CMAKE_USR) \ > + -DENABLE_PROGRAMS=3DOFF \ > + -DENABLE_TESTING=3DOFF \ > + -DENABLE_ZLIB_SUPPORT=3DON \ > + -DINSTALL_MBEDTLS_HEADERS=3DON \ > + -DLINK_WITH_PTHREAD=3DON \ > + -DUNSAFE_BUILD=3DOFF \ > + -DUSE_PKCS11_HELPER_LIBRARY=3DOFF \ > + -DUSE_SHARED_MBEDTLS_LIBRARY=3DON \ > + -DUSE_STATIC_MBEDTLS_LIBRARY=3DOFF > + > +# ----------------------------------------------------------------------= ------ > +# 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 ") > + @$(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) > -- = > 2.25.0 > = > = > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de