Skip to content

Commit

Permalink
ci: opensbi: Using the XUANTIE-RV repository
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Pei <[email protected]>
  • Loading branch information
cp0613 committed Nov 19, 2024
1 parent 0844f75 commit 7c19444
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
include:
- name: zsb-64lp64
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: opensbi-1.4-64lp64
- name: opensbi-1.3-64lp64
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: linux-6.6-64lp64
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: linux-6.6-64ilp32
toolchain_tripe: riscv64-unknown-elf-
- name: zsb-32ilp32
toolchain_tripe: riscv32-unknown-linux-gnu-
- name: opensbi-1.4-32ilp32
- name: opensbi-1.3-32ilp32
toolchain_tripe: riscv32-unknown-linux-gnu-
- name: linux-6.6-32ilp32
toolchain_tripe: riscv32-unknown-linux-gnu-
Expand Down Expand Up @@ -97,12 +97,12 @@ jobs:
mv /opt/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.2 /opt/riscv
rm -v ${xt64_toolchain_file_name}
fi
if [ x"${{ matrix.name }}" = x"opensbi-1.4-64lp64" ]; then
if [ x"${{ matrix.name }}" = x"opensbi-1.3-64lp64" ]; then
wget ${rv64_toolchain}/${rv64_toolchain_file_name}
tar -xvf ${rv64_toolchain_file_name} -C /opt
rm -v ${rv64_toolchain_file_name}
fi
if [ x"${{ matrix.name }}" = x"opensbi-1.4-32ilp32" ]; then
if [ x"${{ matrix.name }}" = x"opensbi-1.3-32ilp32" ]; then
wget ${rv32_toolchain}/${rv32_toolchain_file_name}
tar -xvf ${rv32_toolchain_file_name} -C /opt
rm -v ${rv32_toolchain_file_name}
Expand Down Expand Up @@ -201,25 +201,23 @@ jobs:
cd -
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux git.log modules_install headers_install gdbmacros.txt
fi
if [ x"${{ matrix.name }}" = x"opensbi-1.4-64lp64" ]; then
if [ x"${{ matrix.name }}" = x"opensbi-1.3-64lp64" ]; then
export PATH="/opt/riscv/bin:$PATH"
git clone https://github.com/riscv-software-src/opensbi.git
git clone https://github.com/XUANTIE-RV/opensbi.git -b linux-6.6
cd opensbi
git checkout v1.4
make PLATFORM=generic -j
make PLATFORM=generic BUILD_INFO=y DEBUG=1 -j
mv build/platform/generic/firmware/fw_dynamic.bin ../
mv build/platform/generic/firmware/fw_dynamic.elf ../
git log --oneline -500 > ../git.log
cat ../git.log
cd -
tar czvf ${{ matrix.name }}.tar.gz fw_dynamic.elf fw_dynamic.bin git.log
fi
if [ x"${{ matrix.name }}" = x"opensbi-1.4-32ilp32" ]; then
if [ x"${{ matrix.name }}" = x"opensbi-1.3-32ilp32" ]; then
export PATH="/opt/riscv/bin:$PATH"
git clone https://github.com/riscv-software-src/opensbi.git
git clone https://github.com/XUANTIE-RV/opensbi.git -b linux-6.6
cd opensbi
git checkout v1.4
make PLATFORM=generic -j
make PLATFORM=generic BUILD_INFO=y DEBUG=1 -j
mv build/platform/generic/firmware/fw_dynamic.bin ../
mv build/platform/generic/firmware/fw_dynamic.elf ../
git log --oneline -500 > ../git.log
Expand All @@ -229,7 +227,7 @@ jobs:
fi
if [ x"${{ matrix.name }}" = x"opensbi-0.9-64lp64" ]; then
export PATH="/opt/riscv/bin:$PATH"
git clone https://github.com/c-sky/opensbi.git -b opensbi-v0.9-dev opensbi
git clone https://github.com/XUANTIE-RV/opensbi.git -b opensbi-v0.9-dev
cd opensbi
make PLATFORM=generic -j
mv build/platform/generic/firmware/fw_dynamic.bin ../
Expand Down

0 comments on commit 7c19444

Please sign in to comment.