summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.9.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/wolfssl/wolfssl_5.9.0.bb')
-rw-r--r--meta-networking/recipes-connectivity/wolfssl/wolfssl_5.9.0.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.9.0.bb b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.9.0.bb
new file mode 100644
index 0000000000..a2d6455d93
--- /dev/null
+++ b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.9.0.bb
@@ -0,0 +1,48 @@
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-3.0-only"
10LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
11
12PROVIDES += "cyassl"
13RPROVIDES:${PN} = "cyassl"
14
15SRC_URI = " \
16 git://github.com/wolfSSL/wolfssl.git;protocol=https;branch=master;tag=v${PV}-stable \
17 file://run-ptest \
18"
19
20SRCREV = "922d04b3568c6428a9fb905ddee3ef5a68db3108"
21
22
23inherit autotools ptest
24
25EXTRA_OECONF += "--enable-certreq --enable-dtls --enable-opensslextra --enable-certext --enable-certgen"
26
27PACKAGECONFIG ?= "reproducible-build"
28
29PACKAGECONFIG[reproducible-build] = "--enable-reproducible-build,--disable-reproducible-build,"
30BBCLASSEXTEND += "native nativesdk"
31
32CFLAGS += '-fPIC -DCERT_REL_PREFIX=\\"./\\"'
33
34RDEPENDS:${PN}-ptest += " bash"
35
36do_install_ptest() {
37 # Prevent QA Error "package contains reference to TMPDIR [buildpaths]" for unit.test script
38 # Replace the occurences of ${B}/src with '${PTEST_PATH}'
39 sed -i 's|${B}/src|${PTEST_PATH}|g' ${B}/tests/unit.test
40
41 install -d ${D}${PTEST_PATH}/test
42
43 # create an empty folder examples, needed in wolfssl's tests/api.c to "Test loading path with no files"
44 install -d ${D}${PTEST_PATH}/examples
45 cp -rf ${B}/tests/. ${D}${PTEST_PATH}/test
46 cp -rf ${S}/certs ${D}${PTEST_PATH}
47 cp -rf ${S}/tests ${D}${PTEST_PATH}
48}