update Makefile for github classroom

This commit is contained in:
Yu Chen
2022-06-28 11:15:22 +08:00
parent 88d6e8b122
commit 8896945989

View File

@@ -24,6 +24,8 @@ setup:
cp -r bootloader ${DIR}
cp -r reports ${DIR}
cp rust-toolchain ${DIR}
export PATH=$PATH:$HOME/qemu-7.0.0
export PATH=$PATH:$HOME/qemu-7.0.0/riscv64-softmmu
test1: setup
cp -r os1 ${DIR}/os
@@ -67,3 +69,17 @@ docker:
build_docker:
docker build -t ${DOCKER_NAME} .
setupenv:
apt-get update
apt-get install -y curl wget autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc xz-utils zlib1g-dev libexpat-dev pkg-config libglib2.0-dev libpixman-1-dev git tmux python3
RUSTUP='$HOME/rustup.sh'
cd $HOME
curl https://sh.rustup.rs -sSf > $RUSTUP && chmod +x $RUSTUP
$RUSTUP -y --default-toolchain nightly-2022-04-11 --profile minimal
cd $HOME
wget https://download.qemu.org/qemu-7.0.0.tar.xz
tar xvJf qemu-7.0.0.tar.xz
cd qemu-7.0.0
./configure --target-list=riscv64-softmmu
make