19 lines
555 B
Bash
Executable File
19 lines
555 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd $(dirname $0)
|
|
PROJECT_PATH=$(pwd)
|
|
|
|
mkdir -p $PROJECT_PATH/.build/objects/
|
|
rm -r $PROJECT_PATH/.build/objects
|
|
mkdir -p $PROJECT_PATH/.build/objects/
|
|
|
|
cd $PROJECT_PATH/bootsector
|
|
nasm -o $PROJECT_PATH/.build/objects/bootsector.bin \
|
|
bootsector.asm
|
|
|
|
bash $PROJECT_PATH/legacy-boot/build.bash
|
|
mv $PROJECT_PATH/legacy-boot/loader.bin $PROJECT_PATH/.build/objects/loader.bin
|
|
|
|
cat $PROJECT_PATH/.build/objects/bootsector.bin > $PROJECT_PATH/nightloader.bin
|
|
cat $PROJECT_PATH/.build/objects/loader.bin >> $PROJECT_PATH/nightloader.bin
|