summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb')
-rw-r--r--meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb
new file mode 100644
index 0000000000..af591cfd7a
--- /dev/null
+++ b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb
@@ -0,0 +1,49 @@
1SUMMARY = "wolfSSL Lightweight Embedded SSL/TLS Library"
2DESCRIPTION = "wolfSSL, formerly CyaSSL, is a lightweight SSL library written \
3 in C and optimized for embedded and RTOS environments. It can \
4 be up to 20 times smaller than OpenSSL while still supporting \
5 a full TLS client and server, up to TLS 1.3"
6HOMEPAGE = "https://www.wolfssl.com/products/wolfssl"
7BUGTRACKER = "https://github.com/wolfssl/wolfssl/issues"
8SECTION = "libs"
9LICENSE = "GPL-2.0-only"
10LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
11
12PROVIDES += "cyassl"
13RPROVIDES:${PN} = "cyassl"
14
15SRC_URI = " \
16 git://github.com/wolfSSL/wolfssl.git;protocol=https;branch=master \
17 file://0001-wolfssl-wolfcrypt-logging.h-and-wolfcrypt-src-loggin.patch \
18 file://run-ptest \
19"
20
21SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
22
23
24inherit autotools ptest
25
26EXTRA_OECONF += "--enable-certreq --enable-dtls --enable-opensslextra --enable-certext --enable-certgen"
27
28PACKAGECONFIG ?= "reproducible-build"
29
30PACKAGECONFIG[reproducible-build] = "--enable-reproducible-build,--disable-reproducible-build,"
31BBCLASSEXTEND += "native nativesdk"
32
33CFLAGS += '-fPIC -DCERT_REL_PREFIX=\\"./\\"'
34
35RDEPENDS:${PN}-ptest += " bash"
36
37do_install_ptest() {
38 # Prevent QA Error "package contains reference to TMPDIR [buildpaths]" for unit.test script
39 # Replace the occurences of ${B}/src with '${PTEST_PATH}'
40 sed -i 's|${B}/src|${PTEST_PATH}|g' ${B}/tests/unit.test
41
42 install -d ${D}${PTEST_PATH}/test
43
44 # create an empty folder examples, needed in wolfssl's tests/api.c to "Test loading path with no files"
45 install -d ${D}${PTEST_PATH}/examples
46 cp -rf ${B}/tests/. ${D}${PTEST_PATH}/test
47 cp -rf ${S}/certs ${D}${PTEST_PATH}
48 cp -rf ${S}/tests ${D}${PTEST_PATH}
49}