|
| 1 | +on: |
| 2 | + push: |
| 3 | + paths: |
| 4 | + - '.github/workflows/starfive-jh7110.yml' |
| 5 | + workflow_dispatch: |
| 6 | + |
| 7 | +jobs: |
| 8 | + starfive-jh7110: |
| 9 | + name: Build U-Boot for StarFive JH7110 |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - name: Install Dependencies |
| 13 | + run: | |
| 14 | + apt-get update |
| 15 | + apt-get install -y gcc-riscv64-linux-gnu bc bison build-essential coccinelle \ |
| 16 | + device-tree-compiler dfu-util efitools flex gdisk graphviz imagemagick \ |
| 17 | + libgnutls28-dev libguestfs-tools libncurses-dev \ |
| 18 | + libpython3-dev libsdl2-dev libssl-dev lz4 lzma lzma-alone openssl \ |
| 19 | + pkg-config python3 python3-asteval python3-coverage python3-filelock \ |
| 20 | + python3-pkg-resources python3-pycryptodome python3-pyelftools \ |
| 21 | + python3-pytest python3-pytest-xdist python3-sphinxcontrib.apidoc \ |
| 22 | + python3-sphinx-rtd-theme python3-subunit python3-testtools \ |
| 23 | + python3-venv swig uuid-dev |
| 24 | + - name: Checkout U-Boot Source |
| 25 | + uses: actions/checkout@v5 |
| 26 | + with: |
| 27 | + repository: openeuler-riscv/u-boot.git |
| 28 | + ref: starfive-jh7110-upstream |
| 29 | + fetch-depth: 1 |
| 30 | + path: u-boot |
| 31 | + - name: Checkout OpenSBI Source |
| 32 | + uses: actions/checkout@v5 |
| 33 | + with: |
| 34 | + repository: riscv-software-src/opensbi.git |
| 35 | + ref: v1.7 |
| 36 | + fetch-depth: 1 |
| 37 | + path: opensbi |
| 38 | + - name: Build OpenSBI |
| 39 | + run: | |
| 40 | + mkdir -p build |
| 41 | + make -C opensbi -j $(nproc) O=$(pwd)/build/opensbi CROSS_COMPILE=riscv64-linux-gnu- PLATFORM=generic FW_TEXT_START=0x40000000 FW_OPTIONS=0 |
| 42 | + - name: Build U-Boot |
| 43 | + run: | |
| 44 | + make -C u-boot -j $(nproc) O=$(pwd)/build/u-boot CROSS_COMPILE=riscv64-linux-gnu- starfive_visionfive2_defconfig |
| 45 | + make -C u-boot -j $(nproc) O=$(pwd)/build/u-boot CROSS_COMPILE=riscv64-linux-gnu- OPENSBI=$(pwd)/build/opensbi/platform/generic/firmware/fw_dynamic.bin |
| 46 | + make -C u-boot -j $(nproc) O=$(pwd)/build/u-boot CROSS_COMPILE=riscv64-linux-gnu- u-boot-initial-env |
| 47 | + ./build/u-boot/tools/mkenvimage -s $(grep 'CONFIG_ENV_SIZE' build/u-boot/.config | cut -d '=' -f 2) -o build/u-boot/u-boot-env-default.bin build/u-boot/u-boot-initial-env |
0 commit comments