forked from crazyettin/EttinOS
Upgrade to Sortix build environment.
This commit is contained in:
parent
2bfa61b669
commit
dcd9d60271
1 changed files with 5 additions and 5 deletions
10
make.sh
10
make.sh
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
rm -f EttinOS.img
|
||||
if [[ ! -d "bin" ]]
|
||||
if [ ! -d "bin" ]
|
||||
then
|
||||
mkdir bin
|
||||
fi
|
||||
|
||||
cd src/
|
||||
if [ "$1" == "-1440" ]
|
||||
if [ "$1" = "-1440" ]
|
||||
then nasm BOOT.ASM -d F1440 -f bin -o ../bin/BOOT.BIN
|
||||
else nasm BOOT.ASM -f bin -o ../bin/BOOT.BIN
|
||||
fi
|
||||
|
@ -15,11 +15,11 @@ nasm SYSTEM.ASM -f bin -o ../bin/SYSTEM.BIN
|
|||
nasm HELLO.ASM -f bin -o ../bin/HELLO.BIN
|
||||
|
||||
cd ..
|
||||
if [ "$1" == "-1440" ]
|
||||
if [ "$1" = "-1440" ]
|
||||
then mkfs.fat -C EttinOS.img 1440
|
||||
else mkfs.fat -C EttinOS.img 360
|
||||
fi
|
||||
dd if=bin/BOOT.BIN of=EttinOS.img conv=notrunc bs=512 count=1
|
||||
rw -i bin/BOOT.BIN -o EttinOS.img -b 512 -c 1x
|
||||
mcopy -i EttinOS.img bin/SYSTEM.BIN ::
|
||||
mcopy -i EttinOS.img bin/HELLO.BIN ::
|
||||
mcopy -i EttinOS.img README.MD ::
|
||||
|
|
Loading…
Add table
Reference in a new issue