mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-08 23:01:31 +08:00
update Makefile for github classroom
This commit is contained in:
16
Makefile
16
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user