EttinOS/make.sh

19 lines
411 B
Bash
Raw Normal View History

2021-05-26 14:05:49 +00:00
#!/bin/bash
cd SOURCE/
if [ "$1" == "-F1440" ]
then nasm BOOT.ASM -d F1440 -f bin -o ../BOOT.BIN
else nasm BOOT.ASM -f bin -o ../BOOT.BIN
fi
nasm SYSTEM.ASM -f bin -o ../SYSTEM.BIN
2021-06-02 10:18:59 +00:00
cd ..
rm -f EttinOS.img
if [ "$1" == "-F1440" ]
then mkfs.fat -C EttinOS.img 1440
else mkfs.fat -C EttinOS.img 360
fi
dd if=BOOT.BIN of=EttinOS.img conv=notrunc bs=512 count=1
mcopy -i EttinOS.img SYSTEM.BIN ::