Restore ability to build GBA roms
This commit is contained in:
12
scripts/build_rom.sh
Executable file
12
scripts/build_rom.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo NOSTALGIA_MEDIA_HEADER_________ > media_header.txt
|
||||
|
||||
./dist/current/bin/oxfs format 32 1k nostalgia_media.oxfs
|
||||
./dist/current/bin/nost-pack -fs nostalgia_media.oxfs -img charset.png -inode 101 -tiles 40 -bpp 4 -c
|
||||
|
||||
${DEVKITARM}/bin/padbin 32 build/gba-release/src/nostalgia/player/nostalgia.bin
|
||||
cat build/gba-release/src/nostalgia/player/nostalgia.bin media_header.txt nostalgia_media.oxfs > nostalgia.gba
|
||||
${DEVKITARM}/bin/gbafix nostalgia.gba
|
@ -10,7 +10,7 @@ BUILD_TYPE=$2
|
||||
if [[ $TARGET == windows ]]; then
|
||||
toolchain="-DCMAKE_TOOLCHAIN_FILE=cmake/Modules/Mingw.cmake"
|
||||
elif [[ $TARGET == gba ]]; then
|
||||
toolchain="-DCMAKE_TOOLCHAIN_FILE=cmake/Modules/GBA.cmake -DWOMBAT_BUILD_TYPE=GBA -DOX_USE_STDLIB=OFF -DCMAKE_INSTALL_PREFIX=$DEVKITARM"
|
||||
toolchain="-DCMAKE_TOOLCHAIN_FILE=cmake/Modules/GBA.cmake -DWOMBAT_BUILD_TYPE=GBA -DOX_USE_STDLIB=OFF"
|
||||
fi
|
||||
|
||||
if [[ $BUILD_TYPE == debug ]]; then
|
||||
@ -30,3 +30,8 @@ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||
$toolchain \
|
||||
$project
|
||||
popd
|
||||
|
||||
rm -f build/current dist/current
|
||||
mkdir -p dist
|
||||
ln -s ${TARGET}-${BUILD_TYPE} build/current
|
||||
ln -s ${TARGET}-${BUILD_TYPE} dist/current
|
||||
|
Reference in New Issue
Block a user