gba/build.bat

15 lines
487 B
Batchfile
Raw Normal View History

2018-11-08 15:21:17 +11:00
2018-11-10 20:03:37 +11:00
@rem Build the crt0 file before we begin
2018-11-08 15:21:17 +11:00
arm-none-eabi-as crt0.s -o crt0.o
2018-11-10 20:03:37 +11:00
@rem Build all examples, both debug and release
2018-11-11 17:39:26 +11:00
cargo xbuild --examples --target thumbv4-none-agb.json
cargo xbuild --examples --target thumbv4-none-agb.json --release
2018-11-08 15:21:17 +11:00
2018-11-10 20:03:37 +11:00
@echo Packing examples into ROM files...
@for %%I in (.\examples\*.*) do @(
echo %%~nI
2018-11-11 17:39:26 +11:00
arm-none-eabi-objcopy -O binary target/thumbv4-none-agb/release/examples/%%~nI target/example-%%~nI.gba >nul
2018-11-10 20:03:37 +11:00
gbafix target/example-%%~nI.gba >nul
)