mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
12 lines
292 B
Bash
12 lines
292 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ "$1" = "" ]; then
|
||
|
echo "Usage: $0 [example to build]"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cargo build --example $1 --release || exit 1
|
||
|
arm-none-eabi-objcopy -O binary target/thumbv4-none-agb/release/examples/$1 target/$1.gba || exit 1
|
||
|
gbafix target/$1.gba || exit 1
|
||
|
echo "ROM built successfully!"
|