aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/psp/psp.mk24
-rwxr-xr-xconfigure1
2 files changed, 22 insertions, 3 deletions
diff --git a/backends/platform/psp/psp.mk b/backends/platform/psp/psp.mk
index ff81a567d6..54a9d1a016 100644
--- a/backends/platform/psp/psp.mk
+++ b/backends/platform/psp/psp.mk
@@ -1,6 +1,24 @@
-all: psp_fixup_elf
+all: pack_pbp
-psp_fixup_elf: scummvm.elf
+PSP_EXE := scummvm$(EXEEXT)
+PSP_EXE_STRIPPED := scummvm_stripped$(EXEEXT)
+PACK_PBP = pack-pbp
+
+$(PSP_EXE_STRIPPED): $(PSP_EXE)
+ $(STRIP) $< -o $@
+
+psp_fixup_elf: $(PSP_EXE_STRIPPED)
$(PSPDEV)/bin/psp-fixup-imports $<
-.PHONY: psp_fixup_elf
+pack_pbp: psp_fixup_elf
+ $(PACK_PBP) EBOOT.PBP \
+ $(srcdir)/backends/platform/psp/param.sfo \
+ $(srcdir)/backends/platform/psp/icon0.png \
+ NULL \
+ $(srcdir)/backends/platform/psp/pic0.png \
+ $(srcdir)/backends/platform/psp/pic1.png \
+ NULL \
+ $(PSP_EXE_STRIPPED) \
+ NULL
+
+.PHONY: psp_fixup_elf pack_pbp
diff --git a/configure b/configure
index 589ae03603..a0973f14ab 100755
--- a/configure
+++ b/configure
@@ -1431,6 +1431,7 @@ if test -n "$_host"; then
type_4_byte='int'
_ar="$_host_alias-ar cru"
_ranlib=$_host_alias-ranlib
+ _strip=$_host_alias-strip
_backend="psp"
_build_scalers="no"
_build_hq_scalers="no"