Skip to content

Commit a14c92f

Browse files
committed
Added draft build test.
1 parent b6ed896 commit a14c92f

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Wolfboot Reusable Build Workflow for Raspberry Pi Pico2 (rp2350)
2+
3+
on:
4+
5+
workflow_call:
6+
inputs:
7+
arch:
8+
required: true
9+
type: string
10+
config-file:
11+
required: true
12+
type: string
13+
make-args:
14+
required: false
15+
type: string
16+
17+
jobs:
18+
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
submodules: true
26+
27+
- uses: actions/checkout@main
28+
with:
29+
repository: raspberrypi/pico-sdk
30+
path: pico-sdk
31+
32+
- name: Workaround for sources.list
33+
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list
34+
35+
- name: Update repository
36+
run: sudo apt-get update
37+
38+
- name: Install cross compilers
39+
run: |
40+
sudo apt-get install -y gcc-arm-none-eabi
41+
42+
- name: make distclean
43+
run: |
44+
make distclean
45+
46+
- name: Select config
47+
run: |
48+
cp ${{inputs.config-file}} .config && make include/target.h
49+
50+
- name: Build tools
51+
run: |
52+
make -C tools/keytools && make -C tools/bin-assemble
53+
54+
- name: pre-build wolfboot
55+
run: |
56+
make
57+
- name: build wolfboot with pico-sdk
58+
run: |
59+
cd IDE/pico-sdk/${{inputs.target}}/wolfboot
60+
mkdir build
61+
cd build
62+
cmake ../ -DPICO_SDK_PATH="$GITHUB_WORKSPACE/pico-sdk"
63+
make

.github/workflows/test-configs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,10 @@ jobs:
439439
with:
440440
arch: host
441441
config-file: ./config/examples/sim-wolfHSM.config
442+
443+
rp2350_test:
444+
uses: ./.github/workflows/test-build-pico-sdk.yml
445+
with:
446+
arch: arm
447+
config-file: ./config/examples/rp2350.config
448+
target: rp2350

IDE/pico-sdk/rp2350/test-app/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ void runtime_init_cpasr(void)
77
*cpasr_ns |= 0xFF;
88
}
99

10-
preinit_fn_t __attribute__((section(".nonsecure_preinit_array"))) *((*nonsecure_preinit)(void)) =
10+
preinit_fn_t __attribute__((section(".nonsecure_preinit_array"))) nonsecure_preinit[] =
1111
{ &runtime_init_cpasr };

0 commit comments

Comments
 (0)