Add .gitignore with binary executable files

This commit adds a basic .gitignore which only contains machine code
file endings; files which shouldn't be committed as they're better to
be distributed in other ways.
This commit is contained in:
Eric-Paul Ickhorn 2024-06-14 13:29:32 +02:00
parent 757457d456
commit aa09696218
Signed by: epickh
GPG Key ID: 1358818BAA38B104
2 changed files with 27 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
# Machine Code
*.bin
*.dll
*.elf
*.exe
*.hex
*.o
*.so

18
i386/build.bash Executable file
View File

@ -0,0 +1,18 @@
#!/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/loader/build.bash
mv $PROJECT_PATH/loader/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