PSP2: Strip binaries
Jeffrey Pfau jeffrey@endrift.com
Sat, 05 Sep 2015 13:11:31 -0700
2 files changed,
3 insertions(+),
1 deletions(-)
M
src/platform/psp2/CMakeLists.txt
→
src/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.vitasdk
→
src/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)