Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove compile-time dependencies from key tools #521

Merged
merged 29 commits into from
Dec 5, 2024

Conversation

danielinux
Copy link
Member

@danielinux danielinux commented Nov 25, 2024

  1. Remove all compile-time configuration from key tools, to allow for binary distribution of generic, pre-compiled artifacts.

  2. Add action to build keytools on windows.

  • Update key tools VS project to 2022.
  • Fix a few warnings in sign.c
  • Fix issues with windows already having min/max.
  • Fix (workaround) issue with key tools needing WOLFBOOT_SECTOR_SIZE.

Requires wolfSSL/wolfssl#8257

@danielinux danielinux force-pushed the build-keytools-windows branch from b5680a9 to 1f1cf14 Compare November 25, 2024 12:36
@dgarske dgarske self-assigned this Nov 25, 2024
@dgarske dgarske self-requested a review November 25, 2024 18:41
@dgarske dgarske marked this pull request as ready for review November 25, 2024 18:41
* Update key tools VS project to 2022.
* Fix a few warnings in sign.c
* Fix issues with windows already having min/max.
* Fix (workaround) issue with key tools needing WOLFBOOT_SECTOR_SIZE.
@dgarske dgarske force-pushed the build-keytools-windows branch from ce620ff to bf4c801 Compare November 25, 2024 22:38
dgarske
dgarske previously approved these changes Nov 25, 2024
@dgarske
Copy link
Contributor

dgarske commented Nov 25, 2024

@danielinux please review workaround for delta.c in sign tools needing to know the sector size (WOLFBOOT_SECTOR_SIZE). Perhaps consider making this an argument or taking in the .config at runtime / arg.

- Added getenv() to override the value at runtime
- Removed doc on old python tools
@danielinux danielinux force-pushed the build-keytools-windows branch from 2e12215 to 75efbd9 Compare November 26, 2024 12:17
@dgarske dgarske removed their assignment Nov 26, 2024
@danielinux danielinux changed the title Test: adding action to build keytools on windows Remove compile-time dependencies from key tools Dec 2, 2024
dgarske
dgarske previously approved these changes Dec 5, 2024
@dgarske dgarske requested a review from philljj December 5, 2024 19:54
@dgarske dgarske assigned philljj and unassigned danielinux and dgarske Dec 5, 2024
@dgarske dgarske requested a review from bigbrett December 5, 2024 19:54
bigbrett
bigbrett previously approved these changes Dec 5, 2024
Copy link
Contributor

@bigbrett bigbrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, a welcome addition. A few minor nits that can be disregarded

tools/keytools/keygen.c Show resolved Hide resolved
tools/keytools/sign.c Outdated Show resolved Hide resolved
tools/keytools/sign.c Outdated Show resolved Hide resolved
philljj
philljj previously requested changes Dec 5, 2024
.github/workflows/test-renode-nrf52.yml Show resolved Hide resolved
tools/keytools/keygen.c Show resolved Hide resolved
tools/keytools/sign.c Outdated Show resolved Hide resolved
@dgarske dgarske dismissed stale reviews from bigbrett and themself via 4991eab December 5, 2024 21:40
@dgarske dgarske requested review from philljj and bigbrett December 5, 2024 21:48
bigbrett
bigbrett previously approved these changes Dec 5, 2024
…L-DSA levels at run-time using `ML_DSA_LEVEL` environment variable. wolfBoot needs to be built with the correct level specified in the .config.
@dgarske dgarske force-pushed the build-keytools-windows branch from cc17b31 to 6bed80f Compare December 5, 2024 22:26
@dgarske dgarske assigned dgarske and wolfSSL-Bot and unassigned dgarske and philljj Dec 5, 2024
@bigbrett bigbrett dismissed philljj’s stale review December 5, 2024 23:55

addressed feedback

@bigbrett bigbrett merged commit 21a4082 into wolfSSL:master Dec 5, 2024
102 checks passed
bigbrett added a commit to bigbrett/wolfBoot that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants