From bd1b346e081e94081eea73bf28862db798cd999d Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Sat, 14 Mar 2020 00:44:56 -0500 Subject: [PATCH] BACKENDS: strip psp2 executable to reduce size --- backends/platform/sdl/psp2/psp2.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/backends/platform/sdl/psp2/psp2.mk b/backends/platform/sdl/psp2/psp2.mk index c1396ce4120..4283f4de05e 100644 --- a/backends/platform/sdl/psp2/psp2.mk +++ b/backends/platform/sdl/psp2/psp2.mk @@ -1,10 +1,15 @@ -psp2vpk: $(EXECUTABLE) +PSP2_EXE_STRIPPED := scummvm_stripped$(EXEEXT) + +$(PSP2_EXE_STRIPPED): $(EXECUTABLE) + $(STRIP) --strip-debug $< -o $@ + +psp2vpk: $(PSP2_EXE_STRIPPED) rm -rf psp2pkg rm -f $(EXECUTABLE).vpk mkdir -p psp2pkg/sce_sys/livearea/contents mkdir -p psp2pkg/data/ mkdir -p psp2pkg/doc/ - vita-elf-create $(EXECUTABLE) $(EXECUTABLE).velf + vita-elf-create $(PSP2_EXE_STRIPPED) $(EXECUTABLE).velf vita-make-fself -s -c $(EXECUTABLE).velf psp2pkg/eboot.bin vita-mksfoex -s TITLE_ID=VSCU00001 -d ATTRIBUTE2=12 "$(EXECUTABLE)" psp2pkg/sce_sys/param.sfo cp $(srcdir)/dists/psp2/icon0.png psp2pkg/sce_sys/