psp.sh 698 B

1234567891011121314151617181920212223242526272829303132
  1. platform_enter_hook() {
  2. export DEVKITPRO=$HOME/bin/devkitpro
  3. export DEVKITPSP=$HOME/bin/devkitpro/devkitPSP
  4. export PATH=$DEVKITPSP/bin:$DEVKITPSP/psp/bin:$PATH
  5. BUILD_FLAGS="debuglink"
  6. CONFIG_FLAGS="$CONFIG_FLAGS --platform psp --prefix $DEVKITPSP/psp \
  7. --optimize-size --disable-editor --disable-helpsys \
  8. --disable-utils --disable-libpng --enable-meter"
  9. }
  10. platform_exit_hook() {
  11. DUMMY=1
  12. }
  13. platform_build_test_hook() {
  14. if [ ! -f mzxrun ]; then
  15. ERRNO=1
  16. return
  17. fi
  18. file mzxrun | egrep -q "ELF 32-bit.*LSB.*MIPS.*statically"
  19. if [ "$?" != "0" ]; then
  20. ERRNO=1
  21. return
  22. fi
  23. }
  24. platform_archive_test_hook() {
  25. [ ! -f build/dist/psp/*psp.zip ] && ERRNO=2
  26. }