Skip to content

Commit 05642fd

Browse files
committed
Change toolchain for zynqmp build
1 parent 9b121f2 commit 05642fd

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Wolfboot Build workflow for AARCH64
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-24.04
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
submodules: true
26+
27+
- name: Workaround for sources.list
28+
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list
29+
30+
- name: Update repository
31+
run: sudo apt-get update
32+
33+
- name: Install dependencies
34+
run: |
35+
sudo apt-get install -y build-essential curl
36+
37+
- name: Install cross compiler
38+
run: |
39+
curl -O https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/14.3.rel1/binrel/arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-elf.tar.xz
40+
tar xf arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-elf.tar.xz -C /opt/
41+
echo "/opt/arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-elf/bin" >> $GITHUB_PATH
42+
43+
- name: make clean
44+
run: |
45+
make distclean
46+
47+
- name: Select config
48+
run: |
49+
cp ${{inputs.config-file}} .config
50+
51+
- name: Build tools
52+
run: |
53+
make -C tools/keytools && make -C tools/bin-assemble
54+
55+
- name: Build wolfboot
56+
run: |
57+
make ${{inputs.make-args}}

.github/workflows/test-configs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,10 @@ jobs:
464464
config-file: ./config/examples/x86_64_efi.config
465465

466466
zynqmp_test:
467-
uses: ./.github/workflows/test-build.yml
467+
uses: ./.github/workflows/test-build-aarch64.yml
468468
with:
469469
arch: aarch64
470470
config-file: ./config/examples/zynqmp.config
471-
make-args: CROSS_COMPILE=aarch64-linux-gnu-
472471

473472
sim_wolfhsm_test:
474473
uses: ./.github/workflows/test-build.yml

0 commit comments

Comments
 (0)