all repos — mgba @ a1232b898fd57a557e54253bf0de675d262265c2

mGBA Game Boy Advance Emulator

PSP2: Strip binaries
Jeffrey Pfau jeffrey@endrift.com
Sat, 05 Sep 2015 13:11:31 -0700
commit

a1232b898fd57a557e54253bf0de675d262265c2

parent

3849901dabb58695246f528896d124d1cb701272

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/platform/psp2/CMakeLists.txtsrc/platform/psp2/CMakeLists.txt

@@ -24,7 +24,8 @@ COMMAND ${OBJCOPY_CMD} backdrop.png ${CMAKE_CURRENT_BINARY_DIR}/backdrop.o

WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) add_custom_target(${BINARY_NAME}.velf ALL - ${FIXUP} ${BINARY_NAME}.elf ${BINARY_NAME}.velf ${NIDDB} + ${STRIP} --strip-unneeded -go ${BINARY_NAME}-stripped.elf ${BINARY_NAME}.elf + COMMAND ${FIXUP} ${BINARY_NAME}-stripped.elf ${BINARY_NAME}.velf ${NIDDB} DEPENDS ${BINARY_NAME}.elf) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.velf DESTINATION . COMPONENT ${BINARY_NAME}-psp2)
M src/platform/psp2/CMakeToolchain.vitasdksrc/platform/psp2/CMakeToolchain.vitasdk

@@ -33,6 +33,7 @@

set(FIXUP ${toolchain_bin_dir}/vita-elf-create) set(OBJCOPY ${cross_prefix}objcopy) set(NIDDB ${VITASDK}/db.json) +set(STRIP ${cross_prefix}strip) set(PSP2 ON) add_definitions(-DPSP2)