Skip to content

Commit 312d955

Browse files
dgarskedanielinux
authored andcommitted
Add small stack. Fix to use sim for test-lib.
1 parent 6f8cf9c commit 312d955

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/test-library.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
math: [SPMATH=1, SPMATHALL=1, FASTMATH=1]
17+
smallstack: [WOLFBOOT_SMALL_STACK=0, WOLFBOOT_SMALL_STACK=1]
1718
include:
1819
- name: ED25519-SHA256
1920
keygen: --ed25519
@@ -60,7 +61,7 @@ jobs:
6061
./tools/keytools/keygen ${{ matrix.keygen }} -g wolfboot_signing_private_key.der
6162
echo "Test" > test.bin
6263
./tools/keytools/sign ${{ matrix.sign }} test.bin wolfboot_signing_private_key.der 1
63-
make test-lib ${{ matrix.math }} ${{ matrix.config }}
64+
make test-lib ${{ matrix.math }} ${{ matrix.config }} ${{ matrix.smallstack }}
6465
6566
- name: Run test-lib
6667
run: |

config/examples/library.config

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
ARCH=
2-
NO_LOADER=1
3-
USE_GCC_HEADLESS=0
1+
ARCH=sim
42
TARGET=library
5-
WOLFBOOT_SMALL_STACK=1
3+
64
SIGN?=ED25519
75
HASH?=SHA256
86
IMAGE_HEADER_SIZE?=256
97
DEBUG=0
108
SPMATH?=0
119
SPMATHALL?=0
10+
11+
# Required for library (libwolfboot.a)
12+
NO_LOADER=1
1213
WOLFBOOT_NO_PARTITIONS=1
14+
USE_GCC_HEADLESS=0
15+
16+
WOLFBOOT_SMALL_STACK?=1
1317

1418
# Required to build keytools
1519
WOLFBOOT_SECTOR_SIZE=0x1000

0 commit comments

Comments
 (0)