mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
a4b6a4e8b2
This reverts commit 2f1c243742
.
15 lines
487 B
Batchfile
15 lines
487 B
Batchfile
|
|
@rem Build the crt0 file before we begin
|
|
arm-none-eabi-as crt0.s -o crt0.o
|
|
|
|
@rem Build all examples, both debug and release
|
|
cargo xbuild --examples --target thumbv4-none-agb.json
|
|
cargo xbuild --examples --target thumbv4-none-agb.json --release
|
|
|
|
@echo Packing examples into ROM files...
|
|
@for %%I in (.\examples\*.*) do @(
|
|
echo %%~nI
|
|
arm-none-eabi-objcopy -O binary target/thumbv4-none-agb/release/examples/%%~nI target/example-%%~nI.gba >nul
|
|
gbafix target/example-%%~nI.gba >nul
|
|
)
|