ARM application development SDK for MNT ZZ9000 graphics and coprocessor card for classic Amiga computers.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-shell.sh 857B

12345678910111213141516171819202122
  1. COMPILE="arm-none-eabi-gcc -std=gnu99 -nostdlib -O2 -c -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -I../lib -I../include"
  2. LINK="arm-none-eabi-gcc -T ../link.ld -std=gnu99 -nostdlib -O2 -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
  3. NAME=shell
  4. cppcheck --template='{file}:{line}:{severity}:{message}' --enable=all -I. $NAME.c
  5. mkdir -p build
  6. $COMPILE -I. -o build/$NAME.o $NAME.c
  7. $COMPILE -o build/idiv.o ../lib/div/idiv.S
  8. $COMPILE -o build/idivmod.o ../lib/div/idivmod.S
  9. $COMPILE -o build/ldivmod.o ../lib/div/ldivmod.S
  10. $COMPILE -o build/memset.o ../lib/memory/memset.c
  11. $COMPILE -o build/memcpy.o ../lib/memory/memcpy.c
  12. $COMPILE -o build/printf.o ../lib/printf/printf.c
  13. $LINK -o $NAME build/$NAME.o build/memcpy.o build/memset.o build/printf.o build/*div*.o -L. -lm
  14. arm-none-eabi-objcopy -O binary $NAME $NAME.bin
  15. rm $NAME.lha
  16. lha a0 $NAME.lha $NAME.bin