-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (26 loc) · 924 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all:
gzip -d rootfs-ubifs-ze.img.gz
mkdir -p easy-fs-fuse
mv rootfs-ubifs-ze.img easy-fs-fuse/rootfs-ubifs-ze.img
cd os && make all
run:
cd os && make run
mv:
cd os && make mv
gdb:
cd os && make gdb
qemu-download:
mkdir -p util/qemu-2k1000/tmp
cd util/qemu-2k1000/tmp && wget https://gitlab.educg.net/wangmingjian/os-contest-2024-image/-/raw/master/qemu-2k1000-static.20240526.tar.xz
cd util/qemu-2k1000/tmp && tar xavf qemu-2k1000-static.20240526.tar.xz
rm -rf util/qemu-2k1000/tmp/qemu-2k1000-static.20240526.tar.xz
rm -rf util/qemu-2k1000/tmp/qemu/2k1000
rm -rf util/qemu-2k1000/tmp/qemu/runqemu
rm -rf util/qemu-2k1000/tmp/qemu/README.md
rm -rf util/qemu-2k1000/tmp/qemu/include
rm -rf util/qemu-2k1000/tmp/qemu/var
mkdir -p easy-fs-fuse
sudo chmod 777 easy-fs-fuse/
chmod +x util/mkimage
chmod +x util/qemu-2k1000/gz/runqemu2k1000
chmod +x util/qemu-2k1000/tmp/qemu/bin/qemu-system-loongarch64