Add small stack. Fix to use sim for test-lib.

pull/569/head
David Garske 2025-04-21 14:50:30 -07:00 committed by Daniele Lacamera
parent 6f8cf9cb4c
commit 312d955125
2 changed files with 10 additions and 5 deletions

View File

@ -14,6 +14,7 @@ jobs:
fail-fast: false
matrix:
math: [SPMATH=1, SPMATHALL=1, FASTMATH=1]
smallstack: [WOLFBOOT_SMALL_STACK=0, WOLFBOOT_SMALL_STACK=1]
include:
- name: ED25519-SHA256
keygen: --ed25519
@ -60,7 +61,7 @@ jobs:
./tools/keytools/keygen ${{ matrix.keygen }} -g wolfboot_signing_private_key.der
echo "Test" > test.bin
./tools/keytools/sign ${{ matrix.sign }} test.bin wolfboot_signing_private_key.der 1
make test-lib ${{ matrix.math }} ${{ matrix.config }}
make test-lib ${{ matrix.math }} ${{ matrix.config }} ${{ matrix.smallstack }}
- name: Run test-lib
run: |

View File

@ -1,15 +1,19 @@
ARCH=
NO_LOADER=1
USE_GCC_HEADLESS=0
ARCH=sim
TARGET=library
WOLFBOOT_SMALL_STACK=1
SIGN?=ED25519
HASH?=SHA256
IMAGE_HEADER_SIZE?=256
DEBUG=0
SPMATH?=0
SPMATHALL?=0
# Required for library (libwolfboot.a)
NO_LOADER=1
WOLFBOOT_NO_PARTITIONS=1
USE_GCC_HEADLESS=0
WOLFBOOT_SMALL_STACK?=1
# Required to build keytools
WOLFBOOT_SECTOR_SIZE=0x1000