Merge pull request #8 from xushanpu123/main

add make config
This commit is contained in:
chyyuu
2022-06-29 20:49:14 +08:00
committed by GitHub

View File

@@ -1,3 +1,4 @@
SHELL := /bin/zsh
DOCKER_NAME ?= dinghao188/rcore-tutorial
DIR := workplace
.PHONY: docker build_docker
@@ -15,6 +16,21 @@ lab4: test6 test7
lab5: test8
config:
curl https://sh.rustup.rs -sSf | sh -s -- -y
source /home/codespace/.cargo/env
rustc --version
sudo apt install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev \
gawk build-essential bison flex texinfo gperf libtool patchutils bc \
zlib1g-dev libexpat-dev pkg-config libglib2.0-dev libpixman-1-dev git tmux python3 ninja-build -y
cd .. && wget https://download.qemu.org/qemu-7.0.0.tar.xz
cd .. && tar xvJf qemu-7.0.0.tar.xz
cd ../qemu-7.0.0 && ./configure --target-list=riscv64-softmmu,riscv64-linux-user
cd ../qemu-7.0.0 && make -j$(nproc)
cd ../qemu-7.0.0 && sudo make install
qemu-system-riscv64 --version
qemu-riscv64 --version
setup:
rm -rf ${DIR}
mkdir ${DIR}