u-boot rk3576-2025.04-wip for RK3288 #3
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 RK3288 | |
run-name: u-boot ${{ inputs.uboot_ref }} for RK3288 | |
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": "rk3288-firefly", | |
"config": "firefly-rk3288_defconfig", | |
}, | |
{ | |
"name": "rk3288-miqi", | |
"config": "miqi-rk3288_defconfig", | |
}, | |
{ | |
"name": "rk3288-tinker", | |
"config": "tinker-rk3288_defconfig", | |
}, | |
{ | |
"name": "rk3288-tinker-s", | |
"config": "tinker-s-rk3288_defconfig", | |
}, | |
] | |
steps: | |
- name: Toolchain | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc gcc-arm-linux-gnueabihf 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/RK3288MINIALL.ini -s LOADER_OPTION FlashData) | |
cd u-boot | |
make mrproper | |
make ${{ matrix.boards.config }} | |
make KCFLAGS="-Werror" CROSS_COMPILE=arm-linux-gnueabihf- -j$(nproc) | |
tools/mkimage -l u-boot.img | |
- 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 |