michaeljclark / busybear-linux

busybear-linux is a tiny RISC-V Linux root filesystem image that targets the VirtIO board in riscv-qemu.
93 stars 33 forks source link

A problem in scripts/build.sh #9

Closed hyf6661669 closed 5 years ago

hyf6661669 commented 5 years ago

In https://github.com/michaeljclark/busybear-linux/blob/master/scripts/build.sh#L80-L87:

test -d build/riscv-pk || mkdir build/riscv-pk
test -x build/riscv-pk/bbl || (
    cd build/riscv-pk
    ../../src/riscv-pk/configure \
        --host=${CROSS_COMPILE%-} \
        --with-payload=../linux-${LINUX_KERNEL_VERSION}/vmlinux
    make -j$(nproc)
)

In conf/busybear.config, CROSS_COMPILE is set to riscv64-unknown-linux-gnu-, while in https://github.com/riscv/riscv-pk, it's said we should use the newlib compiler to compile riscv-pk, will the current *.sh file lead to any errors? image