Mercurial > pub > dyncall > dyncall
view buildsys/scripts/elf-to-psp-eboot.sh @ 588:dfc2e6ee8782 r1.4-RC3
- more robust endian detection, on some platforms inclusion of endian.h led to assuming wrong endianness (subtle if inclusion was in
- syscall test: added newline to output
author | Tassilo Philipp |
---|---|
date | Mon, 19 Sep 2022 09:54:21 +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