Revise logic regarding version switching for specific syntax, and add needed updates to use Wrynose yocto lts release
parent
a727d8674b
commit
429eea37f2
|
|
@ -89,19 +89,23 @@ def get_commercial_source_dir(d):
|
|||
workdir = d.getVar('WORKDIR')
|
||||
bundle_name = d.getVar('COMMERCIAL_BUNDLE_NAME')
|
||||
|
||||
# wrynose+ rejects S == bare WORKDIR; fall back to UNPACKDIR where it exists
|
||||
# (the no-bundle parse-time default), keeping WORKDIR on older releases.
|
||||
default_root = d.getVar('UNPACKDIR') or workdir
|
||||
|
||||
# Check for direct source directory - return the copy location in WORKDIR
|
||||
src_dir = d.getVar('COMMERCIAL_BUNDLE_SRC_DIR')
|
||||
if src_dir and src_dir.strip() and not src_dir.startswith('${'):
|
||||
# do_commercial_extract will copy to WORKDIR/bundle_name
|
||||
if bundle_name and bundle_name.strip() and not bundle_name.startswith('${'):
|
||||
return f'{workdir}/{bundle_name}'
|
||||
# Fallback to workdir if bundle_name not set
|
||||
return workdir
|
||||
# Fallback when bundle_name not set
|
||||
return default_root
|
||||
|
||||
# Check if bundle_name is actually set (not empty, None, or unexpanded variable)
|
||||
if bundle_name and bundle_name.strip() and not bundle_name.startswith('${'):
|
||||
return f'{workdir}/{bundle_name}'
|
||||
return workdir
|
||||
return default_root
|
||||
|
||||
def get_commercial_bbclassextend(d):
|
||||
"""Return BBCLASSEXTEND variants only when commercial bundle is configured"""
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ BBPATH := "${LAYERDIR}:${BBPATH}"
|
|||
# Make meta-wolfssl layer directory available to all recipes and bbappends
|
||||
WOLFSSL_LAYERDIR = "${LAYERDIR}"
|
||||
|
||||
# Release split for the per-release enable .incs (see wolfssl-series.bbclass).
|
||||
# Add new releases here only. Anything not listed is treated as modern.
|
||||
WOLFSSL_LEGACY_SERIES ?= "sumo thud warrior zeus"
|
||||
WOLFSSL_MODERN_SERIES ?= "gatesgarth hardknott honister dunfell kirkstone langdale mickledore nanbield scarthgap wrynose"
|
||||
|
||||
# We have a packages directory, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes-wolfssl/wolfssl/*.bb \
|
||||
${LAYERDIR}/recipes-wolfssl/wolfssl/*.bbappend \
|
||||
|
|
@ -180,4 +185,4 @@ BBFILES += "${@bb.utils.contains('WOLFSSL_DEMOS', 'gnutls-nonfips-image-minimal'
|
|||
BBFILES += "${@bb.utils.contains('WOLFSSL_DEMOS', 'fips-image-minimal', '${LAYERDIR}/recipes-core/images/wolfssl-linux-fips-images/fips-image-minimal/*.bb ${LAYERDIR}/recipes-core/images/wolfssl-linux-fips-images/fips-image-minimal/*.bbappend', '', d)}"
|
||||
|
||||
# Versions of OpenEmbedded-Core which layer has been tested against
|
||||
LAYERSERIES_COMPAT_wolfssl = "sumo thud warrior zeus hardknott gatesgarth dunfell kirkstone nanbield langdale scarthgap"
|
||||
LAYERSERIES_COMPAT_wolfssl = "sumo thud warrior zeus hardknott honister gatesgarth dunfell kirkstone mickledore nanbield langdale scarthgap wrynose"
|
||||
|
|
|
|||
|
|
@ -1,30 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def curl_get_wolfprovider_fips_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_curl_curl_enable_wolfprovider_fips(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"curl-enable-wolfprovider-fips.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/curl/%s/curl-enable-wolfprovider-fips-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/curl/%s/curl-enable-wolfprovider-fips-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"curl-enable-wolfprovider-fips.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@curl_get_wolfprovider_fips_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/curl/{codename}/curl-enable-wolfprovider-fips-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_curl_curl_enable_wolfprovider_fips(d)}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def gnupg_get_libgcrypt_wolfssl_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_gnupg_gnupg_enable_libgcrypt_wolfssl(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"gnupg-enable-libgcrypt-wolfssl.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/gnupg/%s/gnupg-enable-libgcrypt-wolfssl-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/gnupg/%s/gnupg-enable-libgcrypt-wolfssl-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"gnupg-enable-libgcrypt-wolfssl.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@gnupg_get_libgcrypt_wolfssl_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/gnupg/{codename}/gnupg-enable-libgcrypt-wolfssl-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_gnupg_gnupg_enable_libgcrypt_wolfssl(d)}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def gnutls_get_wolfssl_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_gnutls_gnutls_enable_wolfssl(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"gnutls-enable-wolfssl.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/gnutls/%s/gnutls-enable-wolfssl-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/gnutls/%s/gnutls-enable-wolfssl-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"gnutls-enable-wolfssl.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@gnutls_get_wolfssl_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/gnutls/{codename}/gnutls-enable-wolfssl-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_gnutls_gnutls_enable_wolfssl(d)}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def libgcrypt_get_wolfssl_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_libgcrypt_libgcrypt_enable_wolfssl(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"libgcrypt-enable-wolfssl.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/libgcrypt/%s/libgcrypt-enable-wolfssl-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/libgcrypt/%s/libgcrypt-enable-wolfssl-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"libgcrypt-enable-wolfssl.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@libgcrypt_get_wolfssl_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/libgcrypt/{codename}/libgcrypt-enable-wolfssl-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_libgcrypt_libgcrypt_enable_wolfssl(d)}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def libssh_get_libgcrypt_wolfssl_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_libssh_libssh_enable_libgcrypt_wolfssl(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"libssh-enable-libgcrypt-wolfssl.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/libssh/%s/libssh-enable-libgcrypt-wolfssl-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/libssh/%s/libssh-enable-libgcrypt-wolfssl-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"libssh-enable-libgcrypt-wolfssl.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@libssh_get_libgcrypt_wolfssl_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/libssh/{codename}/libssh-enable-libgcrypt-wolfssl-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_libssh_libssh_enable_libgcrypt_wolfssl(d)}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def nettle_get_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_nettle_nettle(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"nettle.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/nettle/%s/nettle-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/nettle/%s/nettle-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"nettle.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@nettle_get_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/nettle/{codename}/nettle-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_nettle_nettle(d)}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def rsyslog_get_fips_crypto_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_rsyslog_rsyslog_enable_fips_crypto(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"rsyslog-enable-fips-crypto.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/rsyslog/%s/rsyslog-enable-fips-crypto-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/rsyslog/%s/rsyslog-enable-fips-crypto-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"rsyslog-enable-fips-crypto.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@rsyslog_get_fips_crypto_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/rsyslog/{codename}/rsyslog-enable-fips-crypto-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_rsyslog_rsyslog_enable_fips_crypto(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfcrypt_py_get_tests_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolf_py_tests_wolfcrypt_py_enable_tests(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfcrypt-py-enable-tests.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolf-py-tests/wolfcrypt-py-enable-tests-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolf-py-tests/wolfcrypt-py-enable-tests-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfcrypt-py-enable-tests.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfcrypt_py_get_tests_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolf-py-tests/wolfcrypt-py-enable-tests-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolf_py_tests_wolfcrypt_py_enable_tests(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolf_py_tests_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolf_py_tests_wolfssl_enable_wolf_py_tests(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolf-py-tests.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolf-py-tests/wolfssl-enable-wolf-py-tests-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolf-py-tests/wolfssl-enable-wolf-py-tests-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolf-py-tests.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolf_py_tests_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolf-py-tests/wolfssl-enable-wolf-py-tests-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolf_py_tests_wolfssl_enable_wolf_py_tests(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_py_get_tests_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolf_py_tests_wolfssl_py_enable_tests(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-py-enable-tests.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolf-py-tests/wolfssl-py-enable-tests-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolf-py-tests/wolfssl-py-enable-tests-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-py-enable-tests.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_py_get_tests_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolf-py-tests/wolfssl-py-enable-tests-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolf_py_tests_wolfssl_py_enable_tests(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfclu_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfclu_wolfssl_enable_wolfclu(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfclu.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfclu/wolfssl-enable-wolfclu-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfclu/wolfssl-enable-wolfclu-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfclu.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfclu_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfclu/wolfssl-enable-wolfclu-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfclu_wolfssl_enable_wolfclu(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfcrypt_py_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfcrypt_py_wolfssl_enable_wolfcrypt_py(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfcrypt-py.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfcrypt-py/wolfssl-enable-wolfcrypt-py-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfcrypt-py/wolfssl-enable-wolfcrypt-py-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfcrypt-py.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfcrypt_py_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfcrypt-py/wolfssl-enable-wolfcrypt-py-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfcrypt_py_wolfssl_enable_wolfcrypt_py(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfcryptbenchmark_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfcryptbenchmark_wolfssl_enable_wolfcryptbenchmark(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfcryptbenchmark.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfcryptbenchmark/wolfssl-enable-wolfcryptbenchmark-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfcryptbenchmark/wolfssl-enable-wolfcryptbenchmark-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfcryptbenchmark.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfcryptbenchmark_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfcryptbenchmark/wolfssl-enable-wolfcryptbenchmark-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfcryptbenchmark_wolfssl_enable_wolfcryptbenchmark(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfcrypttest_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfcrypttest_wolfssl_enable_wolfcrypttest(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfcrypttest.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfcrypttest/wolfssl-enable-wolfcrypttest-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfcrypttest/wolfssl-enable-wolfcrypttest-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfcrypttest.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfcrypttest_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfcrypttest/wolfssl-enable-wolfcrypttest-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfcrypttest_wolfssl_enable_wolfcrypttest(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def openssl_get_wolfengine_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfengine_openssl_openssl_enable_wolfengine(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"openssl-enable-wolfengine.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfengine/openssl/openssl-enable-wolfengine-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfengine/openssl/openssl-enable-wolfengine-legacy.inc')
|
||||
|
||||
bb.debug(2,"openssl-enable-wolfengine.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@openssl_get_wolfengine_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfengine/openssl/openssl-enable-wolfengine-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfengine_openssl_openssl_enable_wolfengine(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfengine_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfengine_wolfssl_enable_wolfengine(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfengine.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfengine/wolfssl-enable-wolfengine-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfengine/wolfssl-enable-wolfengine-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfengine.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfengine_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfengine/wolfssl-enable-wolfengine-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfengine_wolfssl_enable_wolfengine(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfengine_get_test_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfenginetest_wolfengine_enable_test(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfengine-enable-test.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfenginetest/wolfengine-enable-test-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfenginetest/wolfengine-enable-test-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfengine-enable-test.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfengine_get_test_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfenginetest/wolfengine-enable-test-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfenginetest_wolfengine_enable_test(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfenginetest_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfenginetest_wolfssl_enable_wolfenginetest(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfenginetest.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfenginetest/wolfssl-enable-wolfenginetest-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfenginetest/wolfssl-enable-wolfenginetest-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfenginetest.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfenginetest_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfenginetest/wolfssl-enable-wolfenginetest-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfenginetest_wolfssl_enable_wolfenginetest(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfpkcs11_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfpkcs11_wolfssl_enable_wolfpkcs11(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfpkcs11.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfpkcs11/wolfssl-enable-wolfpkcs11-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfpkcs11/wolfssl-enable-wolfpkcs11-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfpkcs11.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfpkcs11_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfpkcs11/wolfssl-enable-wolfpkcs11-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfpkcs11_wolfssl_enable_wolfpkcs11(d)}
|
||||
|
|
|
|||
|
|
@ -1,41 +1,23 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
# Per-release variant selection, codename dir with scarthgap fallback
|
||||
def openssh_get_wolfprovider_inc(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
base = os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/openssh')
|
||||
cdir = os.path.join(base, codename)
|
||||
if codename and os.path.isdir(cdir):
|
||||
return os.path.join(cdir, 'openssh-enable-wolfprovider-%s.inc' % variant)
|
||||
return os.path.join(base, 'scarthgap', 'openssh-enable-wolfprovider-%s.inc' % variant)
|
||||
|
||||
bb.debug(2,"openssh-enable-wolfprovider.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
# Determine file type
|
||||
file_type = 'modern' if use_modern else 'legacy'
|
||||
|
||||
# Try codename-specific directory first, fallback to scarthgap (most recent stable)
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if codename:
|
||||
codename_dir = os.path.join(layerdir, 'inc/wolfprovider/openssh/%s' % codename)
|
||||
if os.path.isdir(codename_dir):
|
||||
# Use codename-specific file
|
||||
inc_file = os.path.join(codename_dir, 'openssh-enable-wolfprovider-%s.inc' % file_type)
|
||||
else:
|
||||
# Fallback to scarthgap (most recent stable version)
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/openssh/scarthgap/openssh-enable-wolfprovider-%s.inc' % file_type)
|
||||
else:
|
||||
# If no codename detected, use scarthgap as default
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/openssh/scarthgap/openssh-enable-wolfprovider-%s.inc' % file_type)
|
||||
|
||||
bb.debug(2,"openssh-enable-wolfprovider.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@openssh_get_wolfprovider_inc(d)}
|
||||
|
|
|
|||
|
|
@ -1,41 +1,23 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
# Per-release variant selection, codename dir with scarthgap fallback
|
||||
def openssl_get_wolfprovider_replace_default_inc(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
base = os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/openssl')
|
||||
cdir = os.path.join(base, codename)
|
||||
if codename and os.path.isdir(cdir):
|
||||
return os.path.join(cdir, 'openssl-enable-wolfprovider-replace-default-%s.inc' % variant)
|
||||
return os.path.join(base, 'scarthgap', 'openssl-enable-wolfprovider-replace-default-%s.inc' % variant)
|
||||
|
||||
bb.debug(2,"openssl-enable-wolfprovider-replace-default.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
# Determine file type
|
||||
file_type = 'modern' if use_modern else 'legacy'
|
||||
|
||||
# Try codename-specific directory first, fallback to scarthgap (most recent stable)
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if codename:
|
||||
codename_dir = os.path.join(layerdir, 'inc/wolfprovider/openssl/%s' % codename)
|
||||
if os.path.isdir(codename_dir):
|
||||
# Use codename-specific file
|
||||
inc_file = os.path.join(codename_dir, 'openssl-enable-wolfprovider-replace-default-%s.inc' % file_type)
|
||||
else:
|
||||
# Fallback to scarthgap (most recent stable version)
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/openssl/scarthgap/openssl-enable-wolfprovider-replace-default-%s.inc' % file_type)
|
||||
else:
|
||||
# If no codename detected, use scarthgap as default
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/openssl/scarthgap/openssl-enable-wolfprovider-replace-default-%s.inc' % file_type)
|
||||
|
||||
bb.debug(2,"openssl-enable-wolfprovider-replace-default.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@openssl_get_wolfprovider_replace_default_inc(d)}
|
||||
|
|
|
|||
|
|
@ -1,41 +1,23 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
# Per-release variant selection, codename dir with scarthgap fallback
|
||||
def openssl_get_wolfprovider_inc(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
base = os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/openssl')
|
||||
cdir = os.path.join(base, codename)
|
||||
if codename and os.path.isdir(cdir):
|
||||
return os.path.join(cdir, 'openssl-enable-wolfprovider-%s.inc' % variant)
|
||||
return os.path.join(base, 'scarthgap', 'openssl-enable-wolfprovider-%s.inc' % variant)
|
||||
|
||||
bb.debug(2,"openssl-enable-wolfprovider.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
# Determine file type
|
||||
file_type = 'modern' if use_modern else 'legacy'
|
||||
|
||||
# Try codename-specific directory first, fallback to scarthgap (most recent stable)
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if codename:
|
||||
codename_dir = os.path.join(layerdir, 'inc/wolfprovider/openssl/%s' % codename)
|
||||
if os.path.isdir(codename_dir):
|
||||
# Use codename-specific file
|
||||
inc_file = os.path.join(codename_dir, 'openssl-enable-wolfprovider-%s.inc' % file_type)
|
||||
else:
|
||||
# Fallback to scarthgap (most recent stable version)
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/openssl/scarthgap/openssl-enable-wolfprovider-%s.inc' % file_type)
|
||||
else:
|
||||
# If no codename detected, use scarthgap as default
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/openssl/scarthgap/openssl-enable-wolfprovider-%s.inc' % file_type)
|
||||
|
||||
bb.debug(2,"openssl-enable-wolfprovider.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@openssl_get_wolfprovider_inc(d)}
|
||||
require ${@openssl_get_wolfprovider_inc(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfprovider_get_replace_default_unittest_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfprovider_wolfprovider_enable_replace_default_unittest(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfprovider-enable-replace-default-unittest.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfprovider-enable-replace-default-unittest-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfprovider-enable-replace-default-unittest-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfprovider-enable-replace-default-unittest.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfprovider_get_replace_default_unittest_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/wolfprovider-enable-replace-default-unittest-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfprovider_wolfprovider_enable_replace_default_unittest(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfprovider_get_unittest_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfprovider_wolfprovider_enable_unittest(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfprovider-enable-unittest.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfprovider-enable-unittest-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfprovider-enable-unittest-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfprovider-enable-unittest.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfprovider_get_unittest_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/wolfprovider-enable-unittest-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfprovider_wolfprovider_enable_unittest(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfprovider_fips_ready_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfprovider_wolfssl_enable_wolfprovider_fips_ready(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfprovider-fips-ready.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfssl-enable-wolfprovider-fips-ready-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfssl-enable-wolfprovider-fips-ready-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfprovider-fips-ready.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfprovider_fips_ready_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/wolfssl-enable-wolfprovider-fips-ready-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfprovider_wolfssl_enable_wolfprovider_fips_ready(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfprovider_fips_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfprovider_wolfssl_enable_wolfprovider_fips(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfprovider-fips.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfssl-enable-wolfprovider-fips-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfssl-enable-wolfprovider-fips-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfprovider-fips.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfprovider_fips_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/wolfssl-enable-wolfprovider-fips-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfprovider_wolfssl_enable_wolfprovider_fips(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfprovider_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfprovider_wolfssl_enable_wolfprovider(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfprovider.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfssl-enable-wolfprovider-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfprovider/wolfssl-enable-wolfprovider-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfprovider.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfprovider_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfprovider/wolfssl-enable-wolfprovider-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfprovider_wolfssl_enable_wolfprovider(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfssh_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssh_wolfssl_enable_wolfssh(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfssh.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssh/wolfssl-enable-wolfssh-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssh/wolfssl-enable-wolfssh-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfssh.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfssh_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssh/wolfssl-enable-wolfssh-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssh_wolfssl_enable_wolfssh(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_fips_ready_gnutls_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_fips_ready_wolfssl_enable_gnutls(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-fips-ready/wolfssl-enable-gnutls.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips-ready/wolfssl-enable-gnutls-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips-ready/wolfssl-enable-gnutls-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-fips-ready/wolfssl-enable-gnutls.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_fips_ready_gnutls_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-fips-ready/wolfssl-enable-gnutls-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_fips_ready_wolfssl_enable_gnutls(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_fips_ready_libgcrypt_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_fips_ready_wolfssl_enable_libgcrypt(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-fips-ready/wolfssl-enable-libgcrypt.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips-ready/wolfssl-enable-libgcrypt-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips-ready/wolfssl-enable-libgcrypt-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-fips-ready/wolfssl-enable-libgcrypt.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_fips_ready_libgcrypt_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-fips-ready/wolfssl-enable-libgcrypt-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_fips_ready_wolfssl_enable_libgcrypt(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_commercial_gcs_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_fips_wolfssl_commercial_gcs(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-commercial-gcs.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips/wolfssl-commercial-gcs-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips/wolfssl-commercial-gcs-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-commercial-gcs.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_commercial_gcs_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-fips/wolfssl-commercial-gcs-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_fips_wolfssl_commercial_gcs(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_gnutls_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_fips_wolfssl_enable_gnutls(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-gnutls.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips/wolfssl-enable-gnutls-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips/wolfssl-enable-gnutls-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-gnutls.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_gnutls_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-fips/wolfssl-enable-gnutls-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_fips_wolfssl_enable_gnutls(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_libgcrypt_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_fips_wolfssl_enable_libgcrypt(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-libgcrypt.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips/wolfssl-enable-libgcrypt-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-fips/wolfssl-enable-libgcrypt-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-libgcrypt.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_libgcrypt_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-fips/wolfssl-enable-libgcrypt-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_fips_wolfssl_enable_libgcrypt(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_linuxkm_get_sign_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_linuxkm_wolfssl_linuxkm_sign_module(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-linuxkm-sign-module.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
use_modern = False
|
||||
codename = None
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
codename = series
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-linuxkm/%s/wolfssl-linuxkm-sign-module-modern.inc' % codename)
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-linuxkm/%s/wolfssl-linuxkm-sign-module-legacy.inc' % codename)
|
||||
|
||||
bb.debug(2,"wolfssl-linuxkm-sign-module.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
require ${@wolfssl_linuxkm_get_sign_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-linuxkm/{codename}/wolfssl-linuxkm-sign-module-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_linuxkm_wolfssl_linuxkm_sign_module(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_manual_config_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_manual_config(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-manual-config.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-manual-config-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-manual-config-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-manual-config.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_manual_config_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-manual-config-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_manual_config(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolfssl_py_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolfssl_py_wolfssl_enable_wolfssl_py(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfssl-py.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-py/wolfssl-enable-wolfssl-py-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolfssl-py/wolfssl-enable-wolfssl-py-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolfssl-py.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolfssl_py_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolfssl-py/wolfssl-enable-wolfssl-py-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolfssl_py_wolfssl_enable_wolfssl_py(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolftpm_wrap_test_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolftpm_tests_wolfssl_enable_wolftpm_wrap_test(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolftpm-wrap-test.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolftpm-tests/wolfssl-enable-wolftpm-wrap-test-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolftpm-tests/wolfssl-enable-wolftpm-wrap-test-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolftpm-wrap-test.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolftpm_wrap_test_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolftpm-tests/wolfssl-enable-wolftpm-wrap-test-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolftpm_tests_wolfssl_enable_wolftpm_wrap_test(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolftpm_get_wrap_test_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolftpm_tests_wolftpm_enable_wrap_test(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolftpm-enable-wrap-test.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolftpm-tests/wolftpm-enable-wrap-test-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolftpm-tests/wolftpm-enable-wrap-test-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolftpm-enable-wrap-test.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolftpm_get_wrap_test_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolftpm-tests/wolftpm-enable-wrap-test-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolftpm_tests_wolftpm_enable_wrap_test(d)}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
# Check Yocto version and include appropriate file
|
||||
def wolfssl_get_wolftpm_inc(d):
|
||||
# Per-release variant selection (lists in conf/layer.conf)
|
||||
def _wsel_inc_wolftpm_wolfssl_enable_wolftpm(d):
|
||||
import os
|
||||
layerseries = d.getVar('LAYERSERIES_CORENAMES') or ""
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolftpm.inc: LAYERSERIES_CORENAMES = %s" % layerseries)
|
||||
|
||||
# Check if version is 3.1 or newer (dunfell and later)
|
||||
use_modern = False
|
||||
if layerseries:
|
||||
series_list = layerseries.split()
|
||||
modern_series = ['dunfell', 'gatesgarth', 'hardknott', 'honister', 'kirkstone', 'langdale', 'mickledore', 'nanbield', 'scarthgap']
|
||||
for series in series_list:
|
||||
if series in modern_series:
|
||||
use_modern = True
|
||||
break
|
||||
|
||||
layerdir = d.getVar('WOLFSSL_LAYERDIR')
|
||||
if use_modern:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolftpm/wolfssl-enable-wolftpm-modern.inc')
|
||||
else:
|
||||
inc_file = os.path.join(layerdir, 'inc/wolftpm/wolfssl-enable-wolftpm-legacy.inc')
|
||||
|
||||
bb.debug(2,"wolfssl-enable-wolftpm.inc: Including file: %s" % inc_file)
|
||||
return inc_file
|
||||
|
||||
# Include the appropriate file
|
||||
require ${@wolfssl_get_wolftpm_inc(d)}
|
||||
series = (d.getVar('LAYERSERIES_CORENAMES') or '').split()
|
||||
legacy = set((d.getVar('WOLFSSL_LEGACY_SERIES') or '').split())
|
||||
modern = set((d.getVar('WOLFSSL_MODERN_SERIES') or '').split())
|
||||
variant = 'modern'
|
||||
codename = series[-1] if series else ''
|
||||
for s in series:
|
||||
codename = s
|
||||
if s in legacy:
|
||||
variant = 'legacy'
|
||||
break
|
||||
if s in modern:
|
||||
variant = 'modern'
|
||||
break
|
||||
return os.path.join(d.getVar('WOLFSSL_LAYERDIR'), 'inc/wolftpm/wolfssl-enable-wolftpm-{variant}.inc'.format(variant=variant, codename=codename))
|
||||
require ${@_wsel_inc_wolftpm_wolfssl_enable_wolftpm(d)}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,12 @@ SECTION = "x11/applications"
|
|||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://benchmark.c;beginline=1;endline=20;md5=34cdd4008eba44b62a19f9700e60d888"
|
||||
S = "${WORKDIR}/git/wolfcrypt/benchmark"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}/wolfcrypt/benchmark')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git/wolfcrypt/benchmark')
|
||||
}
|
||||
DEPENDS += "virtual/wolfssl"
|
||||
|
||||
inherit wolfssl-compatibility
|
||||
|
|
|
|||
|
|
@ -7,7 +7,12 @@ SECTION = "x11/applications"
|
|||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://test.c;beginline=1;endline=20;md5=881a8045bc665f7843d064f4465c360a"
|
||||
S = "${WORKDIR}/git/wolfcrypt/test"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}/wolfcrypt/test')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git/wolfcrypt/test')
|
||||
}
|
||||
DEPENDS += "virtual/wolfssl"
|
||||
|
||||
inherit wolfssl-compatibility
|
||||
|
|
|
|||
|
|
@ -17,17 +17,24 @@ SRC_URI = "file://wolfenginetest.c \
|
|||
file://wolfengineenv.sh \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
# wrynose+ bitbake forbids S = "${WORKDIR}"; use UNPACKDIR (where file:// unpacks)
|
||||
# and fall back to WORKDIR on older releases that don't define it.
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}')
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
${CC} ${WORKDIR}/wolfenginetest.c -o wolfenginetest \
|
||||
${CC} ${S}/wolfenginetest.c -o wolfenginetest \
|
||||
${CFLAGS} ${LDFLAGS} $(pkg-config --cflags --libs openssl) -ldl -lwolfssl -lwolfengine
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/wolfenginetest ${D}${bindir}/wolfenginetest
|
||||
install -m 0755 ${WORKDIR}/wolfengineenv.sh ${D}${bindir}/wolfengineenv
|
||||
install -m 0755 ${S}/wolfenginetest ${D}${bindir}/wolfenginetest
|
||||
install -m 0755 ${S}/wolfengineenv.sh ${D}${bindir}/wolfengineenv
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,12 @@ SRC_URI = "git://github.com/wolfssl/wolfProvider.git;nobranch=1;protocol=https;r
|
|||
file://wolfprovidercmd.sh"
|
||||
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
|
|
|
|||
|
|
@ -24,19 +24,26 @@ SRC_URI = "file://wolfproviderenv.c \
|
|||
SRC_URI[provider_conf.sha256sum] = "3ad9e7cf5aefb9d36b9482232365094f42390f3ef03778fa84c3efb39d48e4c2"
|
||||
SRC_URI[provider_fips_conf.sha256sum] = "0b2174ab296aefa9a3f1fe40ccf0b988b25d09188ae5abad27fb60923754e98f"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
# wrynose+ bitbake forbids S = "${WORKDIR}"; use UNPACKDIR (where file:// unpacks)
|
||||
# and fall back to WORKDIR on older releases that don't define it.
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}')
|
||||
}
|
||||
|
||||
inherit pkgconfig
|
||||
|
||||
do_compile() {
|
||||
${CC} ${WORKDIR}/wolfproviderenv.c -o wolfproviderverify \
|
||||
${CC} ${S}/wolfproviderenv.c -o wolfproviderverify \
|
||||
${CFLAGS} ${LDFLAGS} $(pkg-config --cflags --libs openssl) -ldl -lwolfssl -lwolfprov
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/wolfproviderverify ${D}${bindir}/wolfproviderverify
|
||||
install -m 0755 ${WORKDIR}/wolfproviderenv.sh ${D}${bindir}/wolfproviderenv
|
||||
install -m 0755 ${S}/wolfproviderverify ${D}${bindir}/wolfproviderverify
|
||||
install -m 0755 ${S}/wolfproviderenv.sh ${D}${bindir}/wolfproviderenv
|
||||
}
|
||||
|
||||
python __anonymous() {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,12 @@ DEPENDS += " wolfssl-py \
|
|||
|
||||
inherit wolfssl-compatibility
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,12 @@ SECTION = "libs"
|
|||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
DEPENDS += "virtual/wolfssl"
|
||||
|
||||
inherit wolfssl-compatibility
|
||||
|
|
|
|||
|
|
@ -19,7 +19,12 @@ python __anonymous() {
|
|||
SRC_URI = "git://github.com/wolfssl/gnutls-wolfssl.git;protocol=https;branch=main;destsuffix=git"
|
||||
SRCREV = "${AUTOREV}"
|
||||
|
||||
S = "${WORKDIR}/git/wolfssl-gnutls-wrapper"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}/wolfssl-gnutls-wrapper')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git/wolfssl-gnutls-wrapper')
|
||||
}
|
||||
|
||||
# Custom installation prefix
|
||||
WOLFSSL_GNUTLS_PREFIX = "/opt/wolfssl-gnutls-wrapper"
|
||||
|
|
|
|||
|
|
@ -24,4 +24,9 @@ SRCREV_wolfboot ?= "9a667f2a7527da2b8e490ae7923665321af2d3ac"
|
|||
SRCREV_wolfssl ?= "1d363f3adceba9d1478230ede476a37b0dcdef24"
|
||||
SRCREV_FORMAT = "wolfboot_wolfssl"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,17 +8,22 @@ LICENSE = "GPL-2.0-only"
|
|||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
PROVIDES += "wolfclu"
|
||||
RPROVIDES_${PN} = "wolfclu"
|
||||
|
||||
DEPENDS += "virtual/wolfssl"
|
||||
|
||||
SRC_URI = "git://github.com/wolfssl/wolfclu.git;nobranch=1;protocol=https;rev=a17667097d253c97d8f7110e214ea90e2be5e1bd"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
|
||||
|
||||
python __anonymous() {
|
||||
wolfssl_varSet(d, 'RPROVIDES', '${PN}', 'wolfclu')
|
||||
wolfssl_varAppend(d, 'RDEPENDS', '${PN}', ' wolfssl')
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,12 @@ python __anonymous() {
|
|||
wolfssl_varAppend(d, 'RDEPENDS', '${PN}', ' wolfssl python3 python3-cffi')
|
||||
}
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
export USE_LOCAL_WOLFSSL="${STAGING_EXECPREFIXDIR}"
|
||||
# Add reproducible build flags
|
||||
|
|
|
|||
|
|
@ -12,7 +12,12 @@ PROVIDES += "wolfengine"
|
|||
SRC_URI = "git://github.com/wolfssl/wolfengine.git;nobranch=1;protocol=https;rev=02c18e78d59c1e5a029c171a3879e99a145737ca"
|
||||
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
DEPENDS += " virtual/wolfssl \
|
||||
openssl \
|
||||
|
|
|
|||
|
|
@ -15,7 +15,12 @@ DEPENDS += "virtual/wolfssl"
|
|||
SRC_URI = "git://github.com/wolfssl/wolfMQTT.git;nobranch=1;protocol=https;rev=88d37edd4569d07ed3896273fdea9e80a117de76"
|
||||
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,12 @@ DEPENDS += "virtual/wolfssl"
|
|||
|
||||
SRC_URI = "git://github.com/wolfSSL/wolfPKCS11.git;nobranch=1;protocol=https;rev=6b76537e4cc5bea0358b7059fda26d1872584be4"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
|||
DEPENDS += "util-linux-native"
|
||||
|
||||
PROVIDES += "wolfprovider"
|
||||
RPROVIDES_${PN} = "wolfprovider"
|
||||
|
||||
SRC_URI = "git://github.com/wolfssl/wolfProvider.git;nobranch=1;protocol=https;rev=046f4ac583ca7612386f4c38ca29a9d191785aa8"
|
||||
|
||||
|
|
@ -19,6 +18,7 @@ DEPENDS += " virtual/wolfssl \
|
|||
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
|
||||
|
||||
python __anonymous() {
|
||||
wolfssl_varSet(d, 'RPROVIDES', '${PN}', 'wolfprovider')
|
||||
wolfssl_varAppend(d, 'RDEPENDS', '${PN}', ' wolfssl openssl')
|
||||
wolfssl_varSet(d, 'FILES', '${PN}-dev', '${includedir} ${libdir}/pkgconfig/*.pc')
|
||||
wolfssl_varAppend(d, 'FILES', '${PN}', ' ${libdir}/libwolfprov.so ${libdir}/ssl-3/modules/libwolfprov.so ${libdir}/ossl-modules/libwolfprov.so')
|
||||
|
|
@ -26,7 +26,12 @@ python __anonymous() {
|
|||
wolfssl_varAppend(d, 'INSANE_SKIP', '${PN}', ' dev-so')
|
||||
}
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
# Install provider module symlink (autotools already creates libwolfprov.so symlinks)
|
||||
install_provider_module() {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,12 @@ DEPENDS += "virtual/wolfssl"
|
|||
|
||||
SRC_URI = "git://github.com/wolfssl/wolfssh.git;nobranch=1;protocol=https;rev=7d4829843625eb7f59216136a9f21e1f986a8c2e"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
|
||||
|
||||
|
|
|
|||
|
|
@ -22,14 +22,18 @@ DEPENDS += " virtual/wolfssl \
|
|||
python3 \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN} += " wolfssl \
|
||||
python3 \
|
||||
python3-cffi \
|
||||
"
|
||||
inherit setuptools3 wolfssl-compatibility
|
||||
|
||||
inherit setuptools3
|
||||
python __anonymous() {
|
||||
wolfssl_varAppend(d, 'RDEPENDS', '${PN}', ' wolfssl python3 python3-cffi')
|
||||
}
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
export USE_LOCAL_WOLFSSL="${STAGING_EXECPREFIXDIR}"
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,12 @@ SRC_URI = "git://github.com/wolfSSL/wolfssl.git;protocol=https;branch=master"
|
|||
SRCREV = "569a5e03882c4cdef9e99f3a4cfcee96bc25c2cb"
|
||||
|
||||
# After git fetch, S is the git checkout
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
# Build in-tree; wolfSSL's configure expects linuxkm/ under the build dir
|
||||
B = "${S}"
|
||||
|
|
|
|||
|
|
@ -8,13 +8,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
|||
DEPENDS += "util-linux-native"
|
||||
|
||||
PROVIDES += "wolfssl virtual/wolfssl"
|
||||
RPROVIDES_${PN} = "wolfssl"
|
||||
|
||||
SRC_URI = "git://github.com/wolfssl/wolfssl.git;nobranch=1;protocol=https;rev=1d363f3adceba9d1478230ede476a37b0dcdef24"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
inherit autotools pkgconfig wolfssl-helper
|
||||
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
|
||||
|
||||
python __anonymous() {
|
||||
wolfssl_varSet(d, 'RPROVIDES', '${PN}', 'wolfssl')
|
||||
}
|
||||
|
||||
# Skip the package check for wolfssl itself (it's the base library)
|
||||
deltask do_wolfssl_check_package
|
||||
|
|
|
|||
|
|
@ -14,7 +14,12 @@ DEPENDS += "virtual/wolfssl"
|
|||
|
||||
SRC_URI = "git://github.com/wolfssl/wolfTPM.git;nobranch=1;protocol=https;rev=1c61ff6c826bfcf8e1094817b44735720ecff160"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
python () {
|
||||
if d.getVar('UNPACKDIR', False):
|
||||
d.setVar('S', '${UNPACKDIR}/${BP}')
|
||||
else:
|
||||
d.setVar('S', '${WORKDIR}/git')
|
||||
}
|
||||
|
||||
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue