2018-07-24 04:04:07 +02:00
|
|
|
all: cos2000.img
|
|
|
|
|
|
|
|
cos2000.img:
|
|
|
|
(dd if=/dev/zero of=cos2000.img count=2880 bs=512)
|
2020-09-18 23:06:12 +02:00
|
|
|
(mkfs.msdos -F 12 -n "COS2000" cos2000.img;mkdir ./mnt || true)
|
|
|
|
(mount cos2000.img ./mnt -o rw)
|
2018-07-24 04:04:07 +02:00
|
|
|
(cp ../boot/loader.sys ./mnt/)
|
|
|
|
(cp ../system/system.sys ./mnt/;sync)
|
2020-09-18 23:06:12 +02:00
|
|
|
(umount ./mnt)
|
2018-07-24 04:04:07 +02:00
|
|
|
(dd if=../boot/boot12.bin of=cos2000.img seek=0 count=1 conv=notrunc;sync)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.img
|