2024-06-14 11:29:32 +00:00
|
|
|
#!/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
|
|
|
|
|
2024-08-07 08:28:40 +00:00
|
|
|
bash $PROJECT_PATH/legacy-boot/build.bash
|
|
|
|
mv $PROJECT_PATH/legacy-boot/loader.bin $PROJECT_PATH/.build/objects/loader.bin
|
2024-06-14 11:29:32 +00:00
|
|
|
|
|
|
|
cat $PROJECT_PATH/.build/objects/bootsector.bin > $PROJECT_PATH/nightloader.bin
|
|
|
|
cat $PROJECT_PATH/.build/objects/loader.bin >> $PROJECT_PATH/nightloader.bin
|