diff options
Diffstat (limited to 'make_test.sh')
-rwxr-xr-x | make_test.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/make_test.sh b/make_test.sh index e92a652..7403f3c 100755 --- a/make_test.sh +++ b/make_test.sh @@ -1,14 +1,18 @@ #!/usr/bin/env sh -echo Making object file... +echo "Making object files..." +arm-none-eabi-as -obootloader.o bootloader.s arm-none-eabi-as -otest.o test.s -echo Making binary... +echo "Making binaries..." arm-none-eabi-ld -Ttest.ld -otest.elf test.o +arm-none-eabi-ld -Tbootloader.ld -obootloader.elf bootloader.o -echo Stripping binary... +echo "Stripping binary..." +arm-none-eabi-strip --strip-debug --strip-unneeded bootloader.elf arm-none-eabi-strip --strip-debug --strip-unneeded test.elf +arm-none-eabi-objcopy -Obinary bootloader.elf bootloader.bin arm-none-eabi-objcopy -Obinary test.elf test.agb -echo Patching header... +echo "Patching header (test)..." agbsum -psitest.agb |