Commit Graph

35 Commits (7434ef2b9d95462e06fc84b7c08093802d5798de)

Author SHA1 Message Date
JacobBarthelmeh 7434ef2b9d add wolfHSM recipe 2026-07-28 10:22:27 -06:00
night1rider 30ac6ef992 Fips ready readme and recipes for the linux kernel and standard library package 2026-04-17 09:27:29 -06:00
night1rider c7fa9545e1 Update the readme to remove mention of other branchs, until we update our branches 2026-02-02 16:01:28 -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
Juliusz Sosinowicz 3d7b6acb54 Add wolfpkcs11 recipe 2025-11-07 16:30:22 +01:00
Aidan Garske 792e53c4a1 Added steps to use tpm simulator with qemu and yocto linux 2025-03-27 15:55:54 -07:00
Aidan Garske b11b47c43a test example is now wolftpm-wrap-test made the paths correct and temp stored in .libs for libtools 2025-02-28 10:57:02 -08:00
Aidan 9530fc6738 Updated the readme with QEMU information 2024-10-24 20:04:05 -07:00
Aidan 8e7604e928 wolftpm examples now in usr/bin added readme for wolftpm examples 2024-10-24 16:37:14 -07:00
Aidan 9568c19088 .bbappend for wolftpm to move over examples / readme update / option to disable or enable examples 2024-10-17 13:19:26 -07:00
Aidan 7fa9060df3 Adds wolftpm_%.bbappnd to move examples 2024-10-15 13:26:26 -07:00
Aidan 39e261d164 Modified the paths for tpm 2024-10-10 19:35:22 -07:00
Aidan cb46448a1f Added meta recipie / updated README.md and conf 2024-10-10 16:36:52 -07:00
msi-debian dd1e9f65a3 Readme update and layer.conf cleanup 2024-05-08 15:59:02 -06:00
night1rider 0a9f2a7d4a Adding wolfEngine and README's 2024-04-08 11:04:25 -06:00
msi-debian 6cd42f1457 Adding wolfprovider recipes and a usage example/test, also added a README for wolfprovider. 2024-04-01 13:08:12 -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
JacobBarthelmeh 08384e013f
Update README.md 2023-10-13 16:49:23 -06:00
dell5060 b75ca38fbe Updating BBappends 2023-07-10 16:17:48 -06:00
JacobBarthelmeh e8f173df07 update README 2023-03-21 14:36:23 -07:00
Hayden Roche 58fdea50a4 Improve open source projects support.
- Add a wolfssl_%.bbappend for curl.
- Add curl_7.82.0.bbappend.
- Add support for OpenSSH 8.5p1.
- Improve documentation in README.md around building open source projects with
wolfSSL.
- Clean up long lines and other minor things in README.md.
- Add support for Yocto gatesgarth.
2022-04-22 16:45:11 -07:00
David Garske 46e966e301 Updates to latest releases. Solves #10 2019-10-25 14:35:17 -07:00
Chris Conlon 5949a96f96 update README with note about dev package variants 2019-02-19 10:25:28 -07:00
Chris Conlon 78389fa507 add wolfCrypt test and benchmark example recipes 2018-11-30 14:58:54 -07:00
Chris Conlon 3cd9d9d48a add recipes for wolfSSL, wolfSSH, wolfMQTT 2018-11-30 11:59:56 -07:00
Kaleb Himes f6875bed9f
Update link for Yocto recipe 2018-11-20 12:54:46 -07:00
Kaleb Himes dac9c88ada Update link to .bb file 2017-02-27 09:41:11 -07:00
Chris Conlon 2656b2c916 update http link to https 2015-07-20 13:37:56 -06:00
Chris Conlon 18286e7fb0 update README from CyaSSL to wolfSSL 2015-07-20 13:37:11 -06:00
lchristina26 7b459f73e6 update readme 2015-02-18 10:48:59 -07:00
lchristina26 8b589382ee readme edits 2014-07-10 16:22:59 -06:00
lchristina26 d6fb748312 README edits 2014-07-10 13:34:49 -06:00
lchristina26 acee55b0b2 README edits 2014-07-10 13:33:42 -06:00
lchristina26 1aaf6fffdf converted README to .md 2014-07-10 13:31:27 -06:00