#!/bin/sh # Builds xell.bin for the "FAKE-08 as an Aurora/FSD app" setup: # XeLL Reloaded patched to boot fake08.elf straight away (see README.md here). # # Usage (from the repository root, inside the free60/libxenon image): # docker run --rm -v $PWD:/build_dir free60/libxenon:latest \ # /bin/bash -ex /build_dir/platform/xenon/xell-loader/build.sh # Output: platform/xenon/xell-loader/xell.bin (xell-2f, what XeLL Launch ships) # platform/xenon/xell-loader/xell-1f.bin set -e [ -f /etc/profile.d/99-devkitxenon.sh ] && . /etc/profile.d/99-devkitxenon.sh HERE=$(cd "$(dirname "$0")" && pwd) XELL_REPO=https://github.com/Free60Project/xell-reloaded.git XELL_COMMIT=b1bb00b WORK=$(mktemp -d) git clone -q "$XELL_REPO" "$WORK/xell" cd "$WORK/xell" git checkout -q "$XELL_COMMIT" git apply "$HERE/fake08-loader.patch" # build one variant at a time (the variants share build files) make xell-2f.build XELL_EXTRA=-DFAKE08_LOADER cp xell-2f.bin "$HERE/xell.bin" make xell-1f.build XELL_EXTRA=-DFAKE08_LOADER cp xell-1f.bin "$HERE/xell-1f.bin" rm -rf "$WORK" ls -la "$HERE"/*.bin