gp2x.sh 703 B

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