2007-04-02 14:52:01 +02:00
|
|
|
all: makall
|
|
|
|
|
2007-04-02 15:48:46 +02:00
|
|
|
makall: boot/boot12.bin lib/libs.o system/system.sys
|
2007-04-02 14:52:01 +02:00
|
|
|
sync
|
|
|
|
|
|
|
|
clean:
|
|
|
|
(cd system; make clean)
|
|
|
|
(cd boot; make clean)
|
|
|
|
(cd lib;make clean)
|
2018-07-24 04:04:07 +02:00
|
|
|
(cd final;make clean)
|
2007-04-02 14:52:01 +02:00
|
|
|
sync
|
|
|
|
|
|
|
|
backup: clean
|
2020-09-18 23:06:12 +02:00
|
|
|
(tar cf - . | gzip -f - > backup.tar.gz)
|
2007-04-02 15:24:34 +02:00
|
|
|
|
2007-04-02 15:48:46 +02:00
|
|
|
copy:
|
2018-07-24 04:04:07 +02:00
|
|
|
(cd final; make)
|
|
|
|
|
|
|
|
test: all copy qemu
|
|
|
|
|
2020-09-18 23:06:12 +02:00
|
|
|
killer:
|
|
|
|
killall qemu-system-i386 || true
|
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
view:
|
|
|
|
(hexdump -C ./final/cos2000.img|head -c10000)
|
|
|
|
|
|
|
|
debug-boot: all copy qemu-debug
|
2020-09-18 23:06:12 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/boot.txt;spicy --uri=spice://127.0.0.1?port=5900)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
|
|
|
debug-loader: all copy qemu-debug
|
2020-09-18 23:06:12 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/loader.txt;spicy --uri=spice://127.0.0.1?port=5900)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
|
|
|
debug-system: all copy qemu-debug
|
2020-09-18 23:06:12 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/system.txt;spicy --uri=spice://127.0.0.1?port=5900)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
|
|
|
qemu-debug:
|
2020-09-18 23:06:12 +02:00
|
|
|
(qemu-system-i386 -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -m 1G -fda ./final/cos2000.img -s -S &)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
|
|
|
qemu:
|
2020-09-18 23:06:12 +02:00
|
|
|
qemu-system-i386 -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -m 1G -fda ./final/cos2000.img -s &
|
|
|
|
sleep 2
|
|
|
|
spicy --uri=spice://127.0.0.1?port=5900
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
system/system.sys:
|
|
|
|
(cd system; make)
|
|
|
|
|
|
|
|
boot/boot12.bin:
|
|
|
|
(cd boot; make)
|
|
|
|
|
|
|
|
lib/libs.o:
|
2007-04-02 15:48:46 +02:00
|
|
|
(cd lib; make)
|