Commit Graph

35 Commits (master)

Author SHA1 Message Date
Mark Atwood 8d24ad250c fix: correct recipe licenses to match upstream sources
Every recipe below builds sources whose headers say "or (at your
option) any later version", so none is -only.

- 15 recipes GPL-3.0-only -> GPL-3.0-or-later (wolfssl, linuxkm,
  wolfcrypttest/benchmark, wolfprovider(+cmd/test), wolfengine,
  wolfssh, wolfpkcs11, wolfhsm, wolfboot, wolftpm, wolfcrypt-py)
- wolfmqtt, wolfclu: GPL-2.0-only -> GPL-3.0-or-later (sources are
  v3+). wolfclu checksum moved from LICENSE (GPLv2 text) to COPYING
  (GPLv3 text) at the pinned rev.
- wolfssl-py, wolf-py-tests, wolftpm-wrap-test: GPL-2.0-only ->
  GPL-2.0-or-later (sources at those pins are v2+).
- README: wolfSSL is GPLv3 (or later), not GPLv2.

Unchanged: fips-ready recipes (source is a user-supplied bundle) and
wolfssl-gnutls-wrapper (upstream has no license file).
2026-10-06 13:19:28 -07:00
Aidan Garske 1f23db5eaa Update wolfTPM recipe to 4.2.0 2026-09-14 16:05:59 -07:00
night1rider 239acd51b3 Fix old fips/commerical package building method 2026-07-20 09:31:42 -06:00
night1rider 35c4c41f97 Upgrade wolftpm to v4.1.0 and add compile macro map for AES_BLOCK_SIZE 2026-07-17 11:41:47 -06:00
night1rider 43398082fa disable fwtpm server 2026-07-17 10:40:25 -06:00
night1rider cf7678d892 Update wolfSSL and related recipes to latest releases
- wolfssl:      5.9.1  -> 5.9.2
- wolfmqtt:     2.0.0  -> 2.1.0
- wolfssh:      1.4.22 -> 1.5.0
- wolftpm:      3.10.0 -> 4.0.0
- wolfclu:      0.1.8  -> 0.2.0
- wolfprovider: 1.1.1  -> 1.2.0
2026-07-06 12:06:14 -06:00
night1rider 429eea37f2 Revise logic regarding version switching for specific syntax, and add needed updates to use Wrynose yocto lts release 2026-06-05 01:53:05 -06:00
Kareem 1450a76899 Ensure target directory exists for dummy autogen.sh file in do_configure_disable_autogen. 2026-04-29 17:06:04 -07:00
night1rider ae17e51ace Update mqtt, ssh, tpm, and wolfssl py packages 2026-03-05 10:40:48 -07:00
Zackery 9eb5563329
Refactor finalization (#149)
* Refactor meta-wolfssl: modularize feature enablement and centralize helpers in bbclass

Refactored layer.conf to unconditionally include all recipes, moved feature-specific configuration into modular .inc files, created wolfssl-helper.bbclass with reusable do_wolfssl_autogen and do_wolfssl_check_package tasks, updated all recipes to use the new pattern, and standardized commercial license variables to be recipe-specific.

Use a virtual wolfssl to make library switching easier for fips vs non fips or other wolfSSL packages

Set wolfssl libraries as the deafualt weak Preferred_Provider option for packages

* Merged refactor and new test changes

* Combine refactor changes and add replace default and fips modes

* Add working and tested fips, replace default, non-fips, non-replace-default work

* Add FIPS replace default to layers and test all options

* Refactor bbappends to be more yocto like

* Add overide to openssl configure

* Address comment concerns

* Only do neccesary simlinks

* Only do neccesary simlinks

* Convert wolfprovider test bbappend to inc file

* Add Image minimals for all wolfprovider modes

* Fully tested images

* Get conf files from source

* Fix FIPS package issues

* Fixes 7z extraction issues, mostly around using password when the
  password has already been stripped out
* Fixes autoreconf and configure issues with the FIPS package
* Fixes wolfcrypttest and wolfcryptbenchmark not being isntalled with
  FIPS when they are selected

* Fix unstable meta data for fips package

* Fix the execution command for QEMU

The execution of QEMU to get the hash would fail when cross-compiling to
a different CPU target. This fixes it.

* gnutls-wolfssl layers

Added 3 layers
- gnutls: gnutls fork patched to use wolfssl as cryptographic
  provider
- wolfssl: wolfssl configured to work against gnutls
- wolfssl-gnutls-wrapper: shim layer that gets called by gnutls
  applications when linked against gnutls-wolfssl
- gnutls-wolfssl-tests: tests from the wolfssl-gnutls-wrapper folder
  installed under /usr/lib/wolfssl-gnutls-wrapper/

Everything gets installed under /usr ovverriding the system installed
recipes, the wrapper is symlinked in /opt.
Fips currently not supported.

* fips support

* Removed hmac generation and installation since this step is already
happening on the base recipe

* gnutls layers (from https://github.com/wolfSSL/meta-wolfssl/pull/111/)
rebased against the new staging branch (refactor-meta-wolfssl)

* - added gnutls-image-minimal;
- update layer.conf to conditionally include gnutls-image-minimal if
  included in the WOLFSSL_DEMOS;
- minor update to inc/gnutls/gnutls-enable-wolfssl.inc to by pass the
  fuzzing binaries from the base recipes;

* added do_configure[network] = "1" to the inc file (fixes networking issues on
some builds)

* Add support for GCP and tarballs

The commercial package can now be retrieved from GCP and can be a
tarball without password protection.

* fix stamp.h in append rather than main .bb

* Update wolfprovider include files with local changes

* Add messages for debug files

* Follow Debian convention for provider config in openssl.cnf

- Install provider*.conf files to /etc/ssl/openssl.cnf.d/ instead of /opt
- Remove OPENSSL_CONF environment variable approach
- Add .include directive to openssl.cnf automatically in explicit load mode
- This allows OpenSSL to automatically load the provider configuration
- Update script output to reflect the new approach

* Append conf fil

* Don't use fixed version for FIPS

User can use any FIPS wolfSSL package

* Fix naming for new fips rename

* Add final wolfprovider refactor changes

* Benchmark and GPG Error Patch to resolve build issues and disable benchmarking due to length of time it takes to run AES GCM in current port

* Fixes for when GNUPG is needed

* Update wolfProvider images to match other demo images,
add to bbclass to ensure configurations are not added
to reciepes automatically.

* Fips Image for reference

* Fix openssl target detection

This was not working properly on an ARM64 build.

* Add symlink in ossl-modules, install provider.conf from main module

* Remove debug for wolfprovider

* Add fix for loading conf in wolfproviderenv

* linuxkm: add non-FIPS kernel module recipe and initramfs integration class

This introduces support for building the wolfSSL Linux kernel module (linuxkm)
in non-FIPS configurations and adds a generic bbclass for including the module
in any initramfs image.

Key additions:
 - New recipe: wolfssl-linuxkm.bb (non-FIPS)
   * Builds linuxkm against the target kernel
   * Installs libwolfssl.ko into /lib/modules/.../extra
   * Adds auto-load entry under /etc/modules-load.d/
   * Tracks upstream wolfSSL master at commit 3062d1524

 - New class: wolfssl-initramfs.bbclass
   * Allows any initramfs image to include the linuxkm module
   * Intended to be inherited from BSP/distro override layers

This prepares the layer for future FIPS/non-FIPS split support and provides
a clean mechanism for systems that need early-boot availability of the
wolfSSL kernel module.

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>

* Add openssl ptest patch

* Fix openssl patch

* linuxkm: update to latest commit to include randomness changes for Tegra kernel

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>

* Add wolfssl-kernel-random.bbclass for kernel randomness patches

Bbclass to apply wolfSSL DRBG callback hooks to Linux kernel.
Fetches patches from wolfSSL GitHub, works with any kernel flavor.

Usage in kernel bbappend:
  inherit wolfssl-kernel-random
  WOLFSSL_KERNEL_RANDOM_PATCH = "5.17-ubuntu-jammy-tegra"

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>

* Add curl ptest patch

* Make RD and FIPS detection more robust

* Refactor to handle all cases

* Wrong file location for curl .inc

* - Updated gnutls to point to the 3.8.11 branch to get the 3.8.11 version
  of gnutls-wolfssl (https://github.com/wolfSSL/gnutls/tree/gnutls-wolfssl-3.8.11);
- added nettle 3.10 recipe, gnutls depends on nettle to be >= 3.10;
- removed conditional bbappends in favor of the demo image and
  recipes-core + inc configuration setup;

* Add fix for wolfProvider curl FIPS

* Add openssh ptest patch for wolfprovider

* Fix location of openSSH patch to point to upstream osp

* linuxkm-fips: add Yocto recipe

Add commercial FIPS LinuxKM recipe.

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
Signed-off-by: Zackery Backman <zackery@wolfssl.com>

* Wolfprovider patch fix and other cleanup

* Add librelp ptest patch for FIPS

* Add support for wolfProvider RD unit test

* Add replace default method for fips image

* Update rev for wolfProvider

* Update wolfProvider ref

* Update ref version for pr 347

* fixing compatability and file layout for .incs porting

* fix pathing for gcrypt patch file

* FIPS-off gnutls recipes + minimal fips-off image.

* Update ref version for cmd test specific commit to pr 347

* fix buggy paths in meta-wolfssl

* Fix issue with missing config script and also add gcs to linuxkm recipe

* Move commercial bundle evaluation outside of recipes and into bbclass

* Cleanup to readmes

* remove the need for the librelp patch

* Update emails to point at support email

* add Gnutls images to the main readme

* Fix typo in example for wolfprovider meta-data and update licensing to point to 2024/correct md5sum

---------

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
Signed-off-by: Zackery Backman <zackery@wolfssl.com>
Co-authored-by: Aidan Garske <aidan@wolfssl.com>
Co-authored-by: Andrew Hutchings <andrew@linuxjedi.co.uk>
Co-authored-by: Reda Chouk <reda@wolfssl.com>
Co-authored-by: Paul Adelsbach <paul.adelsbach@wolfssl.com>
Co-authored-by: Sameeh Jubran <sameeh@wolfssl.com>
Co-authored-by: Andrew Hutchings <andrew@wolfssl.com>
2026-02-02 15:43:35 -07:00
Andrew Hutchings da16487f42 Update default license file and MD5 hash
Releases currently carry the Jan 2024 license document.
2025-11-10 17:48:49 +00:00
night1rider 455bdcfa0c Update to wolfTPM+License and wolfssl-py 2025-08-18 16:16:51 -06:00
JacobBarthelmeh 8223c87d51 update wolfssl and wolftpm versions 2025-07-22 13:49:30 -06:00
night1rider 2ff7fd4afc wolfprovider commercial bundle recipe support, and updates to recipes to improve QoL. 2025-06-12 18:31:12 -06:00
msi-debian 9bc3bc344a Updating Recipes to latest 2025-03-27 17:59:18 -06:00
JacobBarthelmeh 006ea4be3f update product versions 2024-12-05 00:09:14 -07:00
night1rider f68deaadaf Updating recipes to newest versions due to wolfSSL 5.7.4 release, also adding release of wolfProvider 1.0.1 2024-10-29 16:31:15 -06:00
msi-debian d0ee867280 Updating Releases, Update Script, and adding yocto lts/petalinux 2024-04-29 09:42:49 -06:00
night1rider 0a9f2a7d4a Adding wolfEngine and README's 2024-04-08 11:04:25 -06:00
night1rider 5cdc3ebe05 Adding in FIPS Ready, and commerical recipes
Updating wolfssl products and adding in a wolftpm patch until release happens
2024-03-29 10:53:10 -06:00
night1rider f4e7a25051 Adding ability to use 2.x, 3.x, and newer versions of Yocto with 1 set of recipes 2024-03-18 13:54:33 -06:00
msi-debian 9b37f7a9cc Updating Yocto recipes and removing files 2024-01-07 01:42:32 -07:00
dell5060 955093cc0a Fixed compile issue with wolftpm v2.7.0 and wolfssl v5.6.3 by including a patch for wolftpm 2.7.0 based on pr 277 in wolftpm repo. 2023-07-07 16:35:54 -06:00
JacobBarthelmeh 265532f8b7 update product versions 2023-03-29 10:36:00 -07:00
Jacob Barthelmeh 0881f9577a update versions of recipies 2022-12-22 08:23:28 -07:00
JacobBarthelmeh 7931660042 update versions of bundles 2022-09-01 09:20:32 -07:00
JacobBarthelmeh b309d3e130 specify to use https protocol 2022-03-24 09:52:51 -07:00
Chris Conlon ae2801da58 update wolfTPM from 2.0.0 to 2.3.1 2021-12-10 13:33:31 -08:00
Chris Conlon 2abecec2ac update wolfTPM version from 1.9.0 to 2.0.0 2021-03-16 15:55:25 -06:00
Chris Conlon f5ccf8b65a update recipes to current product versions 2020-11-04 09:39:12 -07:00
Chris Conlon 05f26ca5ba update wolfTPM recipe to 1.8.0 2020-05-07 16:10:22 -06:00
David Garske 3f2b0056b0 Updates to bench/test apps. 2019-10-30 14:39:08 -07:00
David Garske 46e966e301 Updates to latest releases. Solves #10 2019-10-25 14:35:17 -07:00
Chris Conlon 99f66ddaff update product versions and examples 2019-04-18 16:24:27 -06:00
Chris Conlon 98513a08b3 add recipe for wolfTPM 2018-12-04 09:45:29 -07:00