PSP2: Strip binaries

This commit is contained in:
Jeffrey Pfau 2015-09-05 13:11:31 -07:00
parent 3849901dab
commit a1232b898f
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,8 @@ add_custom_command(OUTPUT ${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)

View File

@ -33,6 +33,7 @@ set(PKG_CONFIG_EXECUTABLE "/dev/null" CACHE INTERNAL "" FORCE)
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)