mirror of https://github.com/wolfSSL/wolfBoot.git
Added sim-encrypt tests to github workflow
parent
bc5831747c
commit
39d8eedc61
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
- name: Build key tools
|
||||
run: |
|
||||
make -C tools/keytools
|
||||
|
||||
|
||||
- name: Build bin assemble
|
||||
run: |
|
||||
make -C tools/bin-assemble
|
||||
|
|
@ -50,7 +50,7 @@ jobs:
|
|||
- name: Rebuild wolfboot.elf
|
||||
run: |
|
||||
make test-sim-internal-flash-with-update
|
||||
|
||||
|
||||
- name: Run update-revert test with power failures
|
||||
run: |
|
||||
tools/scripts/sim-update-powerfail-resume.sh
|
||||
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
- name: Build key tools
|
||||
run: |
|
||||
make -C tools/keytools
|
||||
|
||||
|
||||
- name: Build bin assemble
|
||||
run: |
|
||||
make -C tools/bin-assemble
|
||||
|
|
@ -93,11 +93,11 @@ jobs:
|
|||
- name: Rebuild wolfboot.elf
|
||||
run: |
|
||||
make test-sim-internal-flash-with-update
|
||||
|
||||
|
||||
- name: Run update-revert test with power failures (NVM_WRITEONCE)
|
||||
run: |
|
||||
tools/scripts/sim-update-powerfail-resume.sh
|
||||
|
||||
|
||||
# TEST with DELTA updates
|
||||
|
||||
- name: make clean
|
||||
|
|
@ -111,7 +111,7 @@ jobs:
|
|||
- name: Build key tools
|
||||
run: |
|
||||
make -C tools/keytools
|
||||
|
||||
|
||||
- name: Build bin assemble
|
||||
run: |
|
||||
make -C tools/bin-assemble
|
||||
|
|
@ -135,8 +135,51 @@ jobs:
|
|||
- name: Rebuild wolfboot.elf
|
||||
run: |
|
||||
make test-sim-internal-flash-with-delta-update
|
||||
|
||||
# DELTA update currently fails when patch is large enough
|
||||
|
||||
- name: Run update-revert test with power failures (DELTA)
|
||||
run: |
|
||||
tools/scripts/sim-update-powerfail-resume.sh
|
||||
|
||||
|
||||
# TEST with encryption (aes128)
|
||||
|
||||
- name: make clean
|
||||
run: |
|
||||
make keysclean && make -C tools/keytools clean && rm -f include/target.h
|
||||
|
||||
- name: Select config with encrypted updates
|
||||
run: |
|
||||
cp config/examples/sim-encrypt-update.config .config
|
||||
|
||||
- name: Build key tools
|
||||
run: |
|
||||
make -C tools/keytools
|
||||
|
||||
- name: Build bin assemble
|
||||
run: |
|
||||
make -C tools/bin-assemble
|
||||
|
||||
- name: Build wolfboot.elf
|
||||
run: |
|
||||
make test-sim-external-flash-with-enc-update
|
||||
|
||||
- name: Run sunny day update test (AES128)
|
||||
run: |
|
||||
tools/scripts/sim-sunnyday-update.sh
|
||||
|
||||
- name: Rebuild wolfboot.elf
|
||||
run: |
|
||||
make clean && make test-sim-external-flash-with-enc-update
|
||||
|
||||
- name: Run update-revert test (AES128)
|
||||
run: |
|
||||
tools/scripts/sim-update-fallback.sh
|
||||
|
||||
- name: Rebuild wolfboot.elf
|
||||
run: |
|
||||
make clean && make test-sim-external-flash-with-enc-update
|
||||
|
||||
- name: Run update-revert test with power failures (DELTA)
|
||||
run: |
|
||||
tools/scripts/sim-update-powerfail-resume.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
ARCH=sim
|
||||
TARGET=sim
|
||||
SIGN?=ED25519
|
||||
HASH?=SHA256
|
||||
WOLFBOOT_SMALL_STACK=1
|
||||
SPI_FLASH=0
|
||||
EXT_FLASH=1
|
||||
ENCRYPT=1
|
||||
ENCRYPT_WITH_AES128=1
|
||||
DEBUG=1
|
||||
# it should be multiple of system page size
|
||||
WOLFBOOT_PARTITION_SIZE=0x40000
|
||||
WOLFBOOT_SECTOR_SIZE=0x1000
|
||||
WOLFBOOT_PARTITION_BOOT_ADDRESS=0xC0020000
|
||||
# if on external flash, it should be multiple of system page size
|
||||
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x00000
|
||||
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x40000
|
||||
# required for keytools
|
||||
WOLFBOOT_FIXED_PARTITIONS=1
|
||||
Loading…
Reference in New Issue