-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 745 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 745 Bytes
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
all:
make clean
make run
run: build/os-image.bin
qemu-system-x86_64 -serial file:serial.log -hda $<
debug: build/os-image.bin
qemu-system-x86_64 -S -s -serial file:serial.log -hda $<
build/os-image.bin:
(cd src && make)
dd if=/dev/zero of=build/os-image.bin bs=64K count=32
mkfs.vfat -F12 -D0 -f1 -g2/18 -h0 -i0xa0a1a2a3 -M0xf0 -n"ConOS Disk " -r224 -R3 -s1 -S512 -v build/os-image.bin
dd conv=notrunc if=src/boot/boot.bin of=build/os-image.bin
sudo mkdir /mnt/ConOS
sudo mount -o loop build/os-image.bin /mnt/ConOS
sudo cp src/kernel.bin /mnt/ConOS
sudo cp -r filesystem_addons/* /mnt/ConOS
df -B1 | grep /mnt/ConOS
sudo umount /mnt/ConOS
sudo rmdir /mnt/ConOS
clean:
(cd src && make clean)
rm -rf build/*.bin
rm -rf *.log