-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) 2021, Pete Batard <[email protected]> | ||
# Copyright (c) 2021-2023, Pete Batard <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
name: TF-A - Raspberry Pi build | ||
|
@@ -13,9 +13,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Set version | ||
id: set_version | ||
run: echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}" | ||
run: echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT | ||
- name: Set up Linux environment | ||
run: sudo apt install gcc-aarch64-linux-gnu | ||
- name: Download and extract TF-A release | ||
|
@@ -29,50 +31,23 @@ jobs: | |
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@v2 | ||
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 | ||
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 | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
draft: false | ||
prerelease: false | ||
release_name: ${{steps.set_version.outputs.version}} | ||
body: Raspberry Pi Arm Trusted Firmware ${{steps.set_version.outputs.version}} | ||
tag_name: ${{steps.set_version.outputs.version}} | ||
- name: Upload RPi3 bl1.bin | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
upload_url: ${{steps.create_release.outputs.upload_url}} | ||
asset_path: trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/bl1.bin | ||
asset_name: bl1.bin | ||
asset_content_type: application/octet-stream | ||
- name: Upload RPi3 fip.bin | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
upload_url: ${{steps.create_release.outputs.upload_url}} | ||
asset_path: trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi3/release/fip.bin | ||
asset_name: fip.bin | ||
asset_content_type: application/octet-stream | ||
- name: Upload RPi4 bl31.bin | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
upload_url: ${{steps.create_release.outputs.upload_url}} | ||
asset_path: trusted-firmware-a-${{steps.set_version.outputs.version}}/build/rpi4/release/bl31.bin | ||
asset_name: bl31.bin | ||
asset_content_type: application/octet-stream | ||
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 |
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