-
Notifications
You must be signed in to change notification settings - Fork 138
libwolfboot.a improvements / documentation updates and Renesas RX minor fixes #560
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8877da9
Renesas RX minor fixes and documentation updates. Fix for malformed …
dgarske 4551d7c
Support for building libwolfboot.a. Library target used to just build…
dgarske 49839d3
Fixing tests for wolfBoot as library.
dgarske e298d6b
Fix test-lib expected failure case.
dgarske 24e042f
Temp fix: `sign.c:67:5: error: implicit declaration of function '_chs…
dgarske 0e97220
Various minor: Xilinx instructions. Expect RX_TSIP_SRC=1 to enable. T…
dgarske 268e94e
Troubleshooting test-lib failure.
dgarske 0863da0
Support building existing TARGET= with `make libwolfboot.a`.
dgarske b1c4b32
Fixed issue with hal/library.c around NO_FILESYSTEM.
dgarske 09d3fb6
Fix Renesas RX TSIP build from source to use all .c files.
dgarske a378696
Add matrix for all math and sign/hash types.
dgarske 69e9ac5
Add small stack. Fix to use sim for test-lib.
dgarske dbac697
Fixing test-lib matrix.
dgarske 4432fc4
Fix error "Cannot use SMALL_STACK=1 with HUGE_STACK=1"
dgarske 50133f4
Improving matrix.
dgarske ec380d9
Fix to not include the fdt.h header unless MMU is defined. The fdt.h …
dgarske 19ee769
Use tagged release for wolfHSM-examples to keep it in sync with wolfH…
dgarske File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: wolfBoot as Library test | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ 'master', 'main', 'release/**' ] | ||
| pull_request: | ||
| branches: [ '*' ] | ||
|
|
||
| jobs: | ||
| test-lib: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| math: [SPMATH=1 WOLFBOOT_SMALL_STACK=0, | ||
| SPMATH=1 WOLFBOOT_SMALL_STACK=1, | ||
| SPMATHALL=1 WOLFBOOT_SMALL_STACK=0, | ||
| SPMATHALL=1 WOLFBOOT_SMALL_STACK=1, | ||
| SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=0, | ||
| SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=1] | ||
| asym: [ed25519, ecc256, ecc384, ecc521, rsa2048, rsa3072, rsa4096, ed448] | ||
| hash: [sha256, sha384, sha3] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: true | ||
|
|
||
| - name: make clean | ||
| run: | | ||
| make keysclean && make -C tools/keytools clean && rm -f include/target.h | ||
|
|
||
| - name: Build test-lib | ||
| env: | ||
| ASYM: ${{ matrix.asym }} | ||
| HASH: ${{ matrix.hash }} | ||
| run: | | ||
| cp config/examples/library.config .config | ||
| make keytools | ||
| ./tools/keytools/keygen --${{ matrix.asym }} -g wolfboot_signing_private_key.der | ||
| echo "Test" > test.bin | ||
| ./tools/keytools/sign --${{ matrix.asym }} --${{ matrix.hash }} test.bin wolfboot_signing_private_key.der 1 | ||
| # Convert asym and hash to upper case | ||
| make test-lib SIGN=${ASYM^^} HASH=${HASH^^} | ||
|
|
||
| - name: Run test-lib | ||
| run: | | ||
| ./test-lib test_v1_signed.bin | ||
| ./test-lib test_v1_signed.bin 2>&1 | grep "Firmware Valid" | ||
|
|
||
| - name: Run test-lib (expect failure) | ||
| run: | | ||
| # Corrupt signed binary | ||
| truncate -s -1 test_v1_signed.bin | ||
| echo "A" >> test_v1_signed.bin | ||
| ./test-lib test_v1_signed.bin | ||
| ./test-lib test_v1_signed.bin 2>&1 | grep "Failure" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.