Explicitly state the target

This commit is contained in:
GBA bot 2022-01-01 18:58:34 +00:00
parent d13899f0a2
commit 9ef55b26c5

View file

@ -12,7 +12,7 @@ function build_rom() {
local GBA_FILE="target/$GAME_NAME.gba" local GBA_FILE="target/$GAME_NAME.gba"
pushd "examples/$GAME_NAME" pushd "examples/$GAME_NAME"
cargo build --release --verbose cargo build --release --verbose --target thumbv4t-none-eabi
arm-none-eabi-objcopy -O binary "target/thumbv4t-none-eabi/release/$GAME_NAME" "$GBA_FILE" arm-none-eabi-objcopy -O binary "target/thumbv4t-none-eabi/release/$GAME_NAME" "$GBA_FILE"
gbafix -p "-t${INTERNAL_NAME:0:12}" "-c${INTERNAL_NAME:0:4}" -mGC "$GBA_FILE" gbafix -p "-t${INTERNAL_NAME:0:12}" "-c${INTERNAL_NAME:0:4}" -mGC "$GBA_FILE"