u-boot rk3528-2025.04-wip for RK3528 #2
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
name: Build u-boot for RK3528 | |
run-name: u-boot ${{ inputs.uboot_ref }} for RK3528 | |
on: | |
workflow_dispatch: | |
inputs: | |
uboot_ref: | |
description: u-boot ref | |
required: true | |
default: master | |
type: string | |
rkbin_ref: | |
description: rkbin ref | |
required: true | |
default: master | |
type: string | |
jobs: | |
build: | |
name: ${{ matrix.boards.name }} | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
boards: | |
[ | |
{ | |
"name": "rk3528-generic", | |
"config": "generic-rk3528_defconfig", | |
}, | |
{ | |
"name": "rk3528-radxa-e20c", | |
"config": "radxa-e20c-rk3528_defconfig", | |
}, | |
] | |
steps: | |
- name: Toolchain | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc gcc-aarch64-linux-gnu python3-pyelftools confget libgnutls28-dev uuid-dev | |
- name: Checkout rkbin - ${{ inputs.rkbin_ref }} | |
uses: actions/checkout@v4 | |
with: | |
repository: rockchip-linux/rkbin | |
ref: ${{ inputs.rkbin_ref }} | |
path: rkbin | |
- name: Checkout u-boot - ${{ inputs.uboot_ref }} | |
uses: actions/checkout@v4 | |
with: | |
repository: Kwiboo/u-boot-rockchip | |
ref: ${{ inputs.uboot_ref }} | |
path: u-boot | |
- name: Build u-boot - ${{ matrix.boards.config }} | |
id: build | |
if: ${{ hashFiles(format('u-boot/configs/{0}', matrix.boards.config)) != '' }} | |
run: | | |
export ROCKCHIP_TPL=../rkbin/$(confget -f rkbin/RKBOOT/RK3528MINIALL.ini -s LOADER_OPTION FlashData) | |
export BL31=../rkbin/$(confget -f rkbin/RKTRUST/RK3528TRUST.ini -s BL31_OPTION PATH) | |
cd u-boot | |
make mrproper | |
make ${{ matrix.boards.config }} | |
make KCFLAGS="-Werror" CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc) | |
tools/mkimage -l u-boot.itb | |
- name: Upload artifacts | |
if: ${{ success() && steps.build.conclusion != 'skipped' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.boards.name }} | |
path: | | |
u-boot/u-boot-rockchip.bin | |
u-boot/u-boot-rockchip-spi.bin |