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