diff options
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.bb | 48 |
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 @@ | |||
| 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-3.0-only" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
| 11 | |||
| 12 | PROVIDES += "cyassl" | ||
| 13 | RPROVIDES:${PN} = "cyassl" | ||
| 14 | |||
| 15 | SRC_URI = " \ | ||
| 16 | git://github.com/wolfSSL/wolfssl.git;protocol=https;branch=master;tag=v${PV}-stable \ | ||
| 17 | file://run-ptest \ | ||
| 18 | " | ||
| 19 | |||
| 20 | SRCREV = "922d04b3568c6428a9fb905ddee3ef5a68db3108" | ||
| 21 | |||
| 22 | |||
| 23 | inherit autotools ptest | ||
| 24 | |||
| 25 | EXTRA_OECONF += "--enable-certreq --enable-dtls --enable-opensslextra --enable-certext --enable-certgen" | ||
| 26 | |||
| 27 | PACKAGECONFIG ?= "reproducible-build" | ||
| 28 | |||
| 29 | PACKAGECONFIG[reproducible-build] = "--enable-reproducible-build,--disable-reproducible-build," | ||
| 30 | BBCLASSEXTEND += "native nativesdk" | ||
| 31 | |||
| 32 | CFLAGS += '-fPIC -DCERT_REL_PREFIX=\\"./\\"' | ||
| 33 | |||
| 34 | RDEPENDS:${PN}-ptest += " bash" | ||
| 35 | |||
| 36 | do_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 | } | ||
