-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (51 loc) · 2.59 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright (c) 2021-2023, Pete Batard <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause
name: TF-A - Raspberry Pi build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set version
id: set_version
run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Set up Linux environment
run: |
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu
- name: Download and extract TF-A release
run: |
curl -L https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot/trusted-firmware-a-${{steps.set_version.outputs.version}}.tar.gz -o trusted-firmware-a-${{steps.set_version.outputs.version}}.tar.gz
tar -xzf trusted-firmware-a-${{steps.set_version.outputs.version}}.tar.gz
- name: Build TF-A
run: |
cd trusted-firmware-a-${{steps.set_version.outputs.version}}
export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
make PLAT=rpi3 RPI3_PRELOADED_DTB_BASE=0x10000 PRELOADED_BL33_BASE=0x30000 SUPPORT_VFP=1 RPI3_USE_UEFI_MAP=1 DEBUG=0 fip all
make PLAT=rpi4 RPI3_PRELOADED_DTB_BASE=0x1F0000 PRELOADED_BL33_BASE=0x20000 SUPPORT_VFP=1 SMC_PCI_SUPPORT=1 DEBUG=0 all
- name: Upload TF-A artifacts
uses: actions/upload-artifact@v3
with:
name: TF-A ${{steps.set_version.outputs.version}} Artifacts
path: |
trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/bl1.bin
trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/fip.bin
trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi4/release/bl31.bin
- name: Display SHA-256
run: sha256sum trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/bl1.bin trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/fip.bin trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi4/release/bl31.bin
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
body: Raspberry Pi Arm Trusted Firmware ${{steps.set_version.outputs.version}}
files: |
trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/bl1.bin
trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/fip.bin
trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi4/release/bl31.bin