forked from devport/xos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (35 loc) · 1.71 KB
/
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
31
32
33
34
35
36
37
38
39
40
all:
if [ ! -d "out" ]; then mkdir out; fi
if [ ! -d "out/xfs" ]; then mkdir out/xfs; fi
dd if=/dev/zero bs=512 count=71568 of=disk.hdd
fasm kernel/boot/mbr.asm out/mbr.bin
fasm kernel/boot/boot_hdd.asm out/boot_hdd.bin
fasm kernel/kernel.asm out/kernel32.sys
fasm tmp/rootnew.asm out/rootnew.bin
fasm hello/hello.asm out/hello.exe
fasm draw/draw.asm out/draw.exe
fasm buttontest/buttontest.asm out/buttontest.exe
fasm calc/calc.asm out/calc.exe
fasm shell/shell.asm out/shell.exe
fasm edit/edit.asm out/edit.exe
dd if=out/mbr.bin conv=notrunc bs=512 count=1 of=disk.hdd
dd if=out/boot_hdd.bin conv=notrunc bs=512 seek=63 of=disk.hdd
dd if=out/rootnew.bin conv=notrunc bs=512 seek=64 of=disk.hdd
dd if=out/kernel32.sys conv=notrunc bs=512 seek=200 of=disk.hdd
dd if=out/hello.exe conv=notrunc bs=512 seek=1021 of=disk.hdd
dd if=out/draw.exe conv=notrunc bs=512 seek=1022 of=disk.hdd
dd if=out/buttontest.exe conv=notrunc bs=512 seek=1042 of=disk.hdd
dd if=out/calc.exe conv=notrunc bs=512 seek=1062 of=disk.hdd
dd if=out/shell.exe conv=notrunc bs=512 seek=1000 of=disk.hdd
dd if=wp/wp6.bmp conv=notrunc bs=512 seek=8000 of=disk.hdd
dd if=shell/shell.cfg conv=notrunc bs=512 seek=1020 of=disk.hdd
dd if=out/edit.exe conv=notrunc bs=512 seek=1082 of=disk.hdd
run:
qemu-system-i386 -drive file=disk.hdd,format=raw -m 128 -vga std -serial stdio -usb
runsata:
qemu-system-i386 -m 128 -vga std -serial stdio -device ahci,id=ahci -drive if=none,file=disk.hdd,id=xosdrive,format=raw -device ide-drive,drive=xosdrive,bus=ahci.0
runusb:
qemu-system-i386 -m 128 -vga std -serial stdio -usbdevice disk:disk.hdd
clean:
if [ -d "out/xfs" ]; then rm out/xfs/*; rmdir out/xfs; fi
if [ -d "out" ]; then rm out/*; rmdir out; fi