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:
parent
757457d456
commit
aa09696218
|
@ -0,0 +1,9 @@
|
|||
|
||||
# Machine Code
|
||||
*.bin
|
||||
*.dll
|
||||
*.elf
|
||||
*.exe
|
||||
*.hex
|
||||
*.o
|
||||
*.so
|
|
@ -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
|
Loading…
Reference in New Issue