summaryrefslogblamecommitdiff
path: root/make_test.sh
blob: e92a65204c0704a893332d0427747dc3bd901310 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                           
#!/usr/bin/env sh

echo Making object file...
arm-none-eabi-as -otest.o test.s

echo Making binary...
arm-none-eabi-ld -Ttest.ld -otest.elf test.o

echo Stripping binary...
arm-none-eabi-strip --strip-debug --strip-unneeded test.elf
arm-none-eabi-objcopy -Obinary test.elf test.agb

echo Patching header...
agbsum -psitest.agb