Build Linux for the RISC-V target. First, checkout to a desired version:
cd linux
git checkout v5.4.0
make ARCH=riscv CROSS_COMPILE=riscv64-unknown-linux-gnu- defconfig
I couldn't find v5.4.0 tag in Linux repository but I found v5.4 tag. So I speculate v5.4 would be right, not v5.4.0.
I couldn't find
v5.4.0
tag in Linux repository but I foundv5.4
tag. So I speculatev5.4
would be right, notv5.4.0
.