view buildsys/scripts/elf-to-psp-eboot.sh @ 152:d48a8b8d2ef9

- integrated all headers containing DCCallback definition into the translation units used (arm64 already avoided this pointless header, so following that style) - some cleanups, removal of unnecessary includes, etc.
author cslag
date Sat, 22 Oct 2016 15:55:54 +0200
parents 3e629dc19168
children
line wrap: on
line source

#!/bin/sh

if ! [ -x "$1" ]; then
	echo Usage: $0 \<elf\>
	exit 1
fi

TITLE=`basename $1`
SFO=/tmp/${TITLE}.sfo
FIXED_ELF=/tmp/${TITLE}.fixed
STRIPPED_ELF=/tmp/${TITLE}.stripped

mksfo             dyncall_${TITLE} $SFO
psp-fixup-imports -o $FIXED_ELF $1
psp-strip         $FIXED_ELF -o $STRIPPED_ELF
pack-pbp          EBOOT.PBP $SFO NULL NULL NULL NULL NULL $STRIPPED_ELF NULL
rm $SFO
rm $FIXED_ELF
rm $STRIPPED_ELF