Skip to content

deps

deps #10

Workflow file for this run

name: vf2-firmware
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull repositories
run: |
git clone --depth 1 https://github.com/riscv-software-src/opensbi.git
git clone --depth 1 https://github.com/u-boot/u-boot.git
- name: Install dependencies
run: |
sudo apt update
sudo apt install libgnutls28-dev
wget https://toolchains.bootlin.com/downloads/releases/toolchains/riscv64-lp64d/tarballs/riscv64-lp64d--glibc--bleeding-edge-2024.05-1.tar.xz -O riscv64-lp64d--glibc--bleeding-edge-2024.05-1.tar.xz
tar -xf riscv64-lp64d--glibc--bleeding-edge-2024.05-1.tar.xz
mv riscv64-lp64d--glibc--bleeding-edge-2024.05-1 riscv64-buildroot-linux-gnu
- name: Build OpenSBI
run: |
cd opensbi
make PLATFORM=generic CROSS_COMPILE=../riscv64-buildroot-linux-gnu/bin/riscv64-buildroot-linux-gnu- BUILD_INFO=y FW_OPTIONS=0
- name: Build U-Boot
run: |
cd u-boot
make CROSS_COMPILE=../riscv64-buildroot-linux-gnu/bin/riscv64-buildroot-linux-gnu- starfive_visionfive2_defconfig
make CROSS_COMPILE=../riscv64-buildroot-linux-gnu/bin/riscv64-buildroot-linux-gnu- OPENSBI=../opensbi/platform/generic/firmware/fw_dynamic.bin
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
u-boot/spl/u-boot-spl.bin.normal.out
u-boot/u-boot.itb
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.sha }}
release_name: ${{ github.sha }}
body: Automated release