35 lines
1.3 KiB
BlitzBasic
35 lines
1.3 KiB
BlitzBasic
SUMMARY = "wolfSSL Lightweight Embedded SSL/TLS Library"
|
|
DESCRIPTION = "wolfSSL is a lightweight SSL/TLS library written in C and optimized for embedded and RTOS environments. It supports a full TLS client and server, up to TLS 1.3."
|
|
HOMEPAGE = "https://www.wolfssl.com/products/wolfssl/"
|
|
BUGTRACKER = "https://github.com/wolfssl/wolfssl/issues"
|
|
SECTION = "libs"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
DEPENDS += "util-linux-native"
|
|
|
|
PROVIDES += "wolfssl"
|
|
RPROVIDES_${PN} = "wolfssl"
|
|
|
|
SRC_URI = "git://github.com/wolfssl/wolfssl.git;nobranch=1;protocol=https;rev=b077c81eb635392e694ccedbab8b644297ec0285"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
|
inherit autotools pkgconfig
|
|
|
|
# Approach: Use Python to dynamically set function content based on Yocto version
|
|
python() {
|
|
distro_version = d.getVar('DISTRO_VERSION', True)
|
|
autogen_command = 'cd ${S}; ./autogen.sh'
|
|
if distro_version and (distro_version.startswith('2.') or distro_version.startswith('3.')):
|
|
# For Dunfell and earlier
|
|
d.appendVar('do_configure_prepend', autogen_command)
|
|
else:
|
|
# For Kirkstone and later
|
|
d.appendVar('do_configure:prepend', autogen_command)
|
|
}
|
|
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
EXTRA_OECONF += "--enable-reproducible-build"
|