Skip to content

Commit

Permalink
ci: linux-6.6: Add rv32 debug image compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Pei <[email protected]>
  • Loading branch information
cp0613 committed Jan 15, 2025
1 parent fc15f46 commit 48b0219
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
toolchain_tripe: riscv32-unknown-linux-gnu-
- name: linux-6.6-32ilp32
toolchain_tripe: riscv32-unknown-linux-gnu-
- name: linux-6.6-32ilp32-debug
toolchain_tripe: riscv32-unknown-linux-gnu-
- name: zsb-64lp64-xt
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: opensbi-0.9-64lp64
Expand Down Expand Up @@ -85,6 +87,11 @@ jobs:
tar -xvf ${rv32_toolchain_file_name} -C /opt
rm -v ${rv32_toolchain_file_name}
fi
if [ x"${{ matrix.name }}" = x"linux-6.6-32ilp32-debug" ]; then
wget ${rv32_toolchain}/${rv32_toolchain_file_name}
tar -xvf ${rv32_toolchain_file_name} -C /opt
rm -v ${rv32_toolchain_file_name}
fi
if [ x"${{ matrix.name }}" = x"linux-6.6-64lp64" ]; then
wget ${rv64_toolchain}/${rv64_toolchain_file_name}
tar -xvf ${rv64_toolchain_file_name} -C /opt
Expand Down Expand Up @@ -200,7 +207,20 @@ jobs:
export PATH="/opt/riscv/bin:$PATH"
git clone https://github.com/ruyisdk/linux-xuantie-kernel.git linux
cd linux
make ARCH=riscv EXTRA_CFLAGS+=-g rv32_defconfig all INSTALL_MOD_PATH=../modules_install modules_install INSTALL_HDR_PATH=../headers_install headers_install -j$(nproc)
make ARCH=riscv EXTRA_CFLAGS+=-g xuantie_rv32_defconfig all INSTALL_MOD_PATH=../modules_install modules_install INSTALL_HDR_PATH=../headers_install headers_install -j$(nproc)
mv arch/riscv/boot/Image ../
mv vmlinux ../
cp Documentation/admin-guide/kdump/gdbmacros.txt ../
git log --oneline -500 > ../git.log
cat ../git.log
cd -
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux git.log modules_install headers_install gdbmacros.txt
fi
if [ x"${{ matrix.name }}" = x"linux-6.6-32ilp32-debug" ]; then
export PATH="/opt/riscv/bin:$PATH"
git clone https://github.com/ruyisdk/linux-xuantie-kernel.git linux
cd linux
make ARCH=riscv EXTRA_CFLAGS+=-g xuantie_rv32_debug_defconfig all INSTALL_MOD_PATH=../modules_install modules_install INSTALL_HDR_PATH=../headers_install headers_install -j$(nproc)
mv arch/riscv/boot/Image ../
mv vmlinux ../
cp Documentation/admin-guide/kdump/gdbmacros.txt ../
Expand Down

0 comments on commit 48b0219

Please sign in to comment.