fix: fix ci kernel config

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
This commit is contained in:
Han Gao
2023-06-24 16:58:42 +08:00
committed by Han Gao
parent 231409c0ed
commit 93e7aec675

View File

@@ -52,8 +52,10 @@ jobs:
- name: Configure toolchains
run: |
mkdir rootfs && mkdir rootfs/boot
wget ${xuetie_toolchain}/${toolchain_file_name}
tar -xvf ${toolchain_file_name} -C /opt
if [ x"${{ matrix.name }}" = x"thead-gcc" ]; then
wget ${xuetie_toolchain}/${toolchain_file_name}
tar -xvf ${toolchain_file_name} -C /opt
fi
- name: Compile Kernel && Install
run: |
@@ -61,6 +63,15 @@ jobs:
pushd kernel
make CROSS_COMPILE=${{ matrix.toolchain_tripe }} ARCH=${ARCH} revyos_defconfig
if [ x"${{ matrix.name }}" = x"gcc-12" ]; then
echo "CONFIG_VECTOR=n" >> .config
echo "CONFIG_THEAD_ISA=n" >> .config
elif [ x"${{ matrix.name }}" = x"thead-gcc" ]; then
echo "CONFIG_VECTOR=y" >> .config
echo "CONFIG_VECTOR_0_7=y" >> .config
echo "CONFIG_VECTOR_1_0=n" >> .config
echo "CONFIG_THEAD_ISA=y" >> .config
fi
make CROSS_COMPILE=${{ matrix.toolchain_tripe }} ARCH=${ARCH} -j$(nproc)
make CROSS_COMPILE=${{ matrix.toolchain_tripe }} ARCH=${ARCH} -j$(nproc) dtbs
if [ x"$(cat .config | grep CONFIG_MODULES=y)" = x"CONFIG_MODULES=y" ]; then