forked from wolfSSL/wolfBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wolfSSL#431 from danielinux/update-wolfssl-v5.7.0
Updated submodules: wolfSSL-v5.7.0 + wolfTPM latest
- Loading branch information
Showing
16 changed files
with
220 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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 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,62 @@ | ||
name: Wolfboot Reusable Build Workflow | ||
|
||
on: | ||
|
||
workflow_call: | ||
inputs: | ||
arch: | ||
required: true | ||
type: string | ||
config-file: | ||
required: true | ||
type: string | ||
make-args: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Workaround for sources.list | ||
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list | ||
|
||
- name: Update repository | ||
run: sudo apt-get update | ||
|
||
- name: Install cross compilers | ||
run: | | ||
sudo apt-get install -y gcc-arm-none-eabi gcc-aarch64-linux-gnu gcc-powerpc-linux-gnu gnu-efi | ||
- name: Create lib hash-sigs | ||
run: | | ||
mkdir -p lib/hash-sigs/lib | ||
- name: Clone hash-sigs repository | ||
run: | | ||
git clone https://github.com/cisco/hash-sigs.git lib/hash-sigs/src && \ | ||
cd lib/hash-sigs/src && git checkout b0631b8891295bf2929e68761205337b7c031726 && \ | ||
git apply ../../../tools/lms/0001-Patch-to-support-wolfBoot-LMS-build.patch && \ | ||
cd ../../.. | ||
- name: make clean | ||
run: | | ||
make distclean | ||
- name: Select config | ||
run: | | ||
cp ${{inputs.config-file}} .config | ||
- name: Build tools | ||
run: | | ||
make -C tools/keytools && make -C tools/bin-assemble | ||
- name: Build wolfboot | ||
run: | | ||
make ${{inputs.make-args}} |
This file contains 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 |
---|---|---|
|
@@ -26,7 +26,7 @@ on: | |
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# setup ibmswtpm2 | ||
|
This file contains 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 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 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 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,51 @@ | ||
ARCH?=ARM | ||
TARGET?=stm32c0 | ||
SIGN?=LMS | ||
LMS_LEVELS=1 | ||
LMS_HEIGHT=10 | ||
LMS_WINTERNITZ=8 | ||
IMAGE_SIGNATURE_SIZE=1456 | ||
IMAGE_HEADER_SIZE=2048 | ||
HASH?=SHA256 | ||
DEBUG?=0 | ||
VTOR?=1 | ||
CORTEX_M0?=1 | ||
NO_ASM?=0 | ||
NO_MPU?=1 | ||
EXT_FLASH?=0 | ||
SPI_FLASH?=0 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=1 | ||
WOLFBOOT_VERSION?=0 | ||
V?=0 | ||
SPMATH?=1 | ||
DUALBANK_SWAP?=0 | ||
|
||
# Enable this to support wolfBoot self-update | ||
RAM_CODE?=0 | ||
|
||
# Use slightly smaller SHA2-256 | ||
CFLAGS_EXTRA+=-DUSE_SLOW_SHA256 | ||
|
||
# Enable this feature for secure memory support | ||
# Makes the flash sectors for the bootloader unaccessible from the application | ||
# Requires using the STM32CubeProgrammer to set FLASH_SECR -> SEC_SIZE pages | ||
#CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT | ||
|
||
|
||
#Partition: Boot: 10KB, App, 10KB | ||
WOLFBOOT_PARTITION_SIZE?=0x2800 | ||
WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#Max WOLFBOOT size is 10KB | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08002800 | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x085000 | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 | ||
|
||
#Example debugging partition for larger wolfBoot | ||
#Partition: Boot: 22KB, App, 4K | ||
#DEBUG?=1 | ||
#WOLFBOOT_PARTITION_SIZE?=0x1000 | ||
#WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08005800 | ||
#WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08006800 | ||
#WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 |
This file contains 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,46 @@ | ||
ARCH?=ARM | ||
TARGET?=stm32c0 | ||
SIGN?=RSA2048 | ||
HASH?=SHA256 | ||
DEBUG?=0 | ||
VTOR?=1 | ||
CORTEX_M0?=1 | ||
NO_ASM?=0 | ||
NO_MPU?=1 | ||
EXT_FLASH?=0 | ||
SPI_FLASH?=0 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=1 | ||
WOLFBOOT_VERSION?=0 | ||
V?=0 | ||
SPMATH?=1 | ||
DUALBANK_SWAP?=0 | ||
|
||
# Enable this to support wolfBoot self-update | ||
RAM_CODE?=0 | ||
|
||
# Use slightly smaller SHA2-256 | ||
CFLAGS_EXTRA+=-DUSE_SLOW_SHA256 | ||
|
||
# Enable this feature for secure memory support | ||
# Makes the flash sectors for the bootloader unaccessible from the application | ||
# Requires using the STM32CubeProgrammer to set FLASH_SECR -> SEC_SIZE pages | ||
#CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT | ||
|
||
|
||
#Partition: Boot: 12KB, App, 8KB | ||
WOLFBOOT_PARTITION_SIZE?=0x2000 | ||
WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#Max WOLFBOOT size is 10KB | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08003000 | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08005000 | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 | ||
|
||
#Example debugging partition for larger wolfBoot | ||
#Partition: Boot: 22KB, App, 4K | ||
#DEBUG?=1 | ||
#WOLFBOOT_PARTITION_SIZE?=0x1000 | ||
#WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08005800 | ||
#WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08006800 | ||
#WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 |
This file contains 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 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
Submodule wolfTPM
updated
88 files
This file contains 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 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 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 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