diff options
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.bb | 49 |
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 @@ | |||
1 | SUMMARY = "wolfSSL Lightweight Embedded SSL/TLS Library" | ||
2 | DESCRIPTION = "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" | ||
6 | HOMEPAGE = "https://www.wolfssl.com/products/wolfssl" | ||
7 | BUGTRACKER = "https://github.com/wolfssl/wolfssl/issues" | ||
8 | SECTION = "libs" | ||
9 | LICENSE = "GPL-2.0-only" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
11 | |||
12 | PROVIDES += "cyassl" | ||
13 | RPROVIDES:${PN} = "cyassl" | ||
14 | |||
15 | SRC_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 | |||
21 | SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285" | ||
22 | |||
23 | |||
24 | inherit autotools ptest | ||
25 | |||
26 | EXTRA_OECONF += "--enable-certreq --enable-dtls --enable-opensslextra --enable-certext --enable-certgen" | ||
27 | |||
28 | PACKAGECONFIG ?= "reproducible-build" | ||
29 | |||
30 | PACKAGECONFIG[reproducible-build] = "--enable-reproducible-build,--disable-reproducible-build," | ||
31 | BBCLASSEXTEND += "native nativesdk" | ||
32 | |||
33 | CFLAGS += '-fPIC -DCERT_REL_PREFIX=\\"./\\"' | ||
34 | |||
35 | RDEPENDS:${PN}-ptest += " bash" | ||
36 | |||
37 | do_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 | } | ||