mirror of https://github.com/mgba-emu/mgba.git
PSP2: Strip binaries
This commit is contained in:
parent
3849901dab
commit
a1232b898f
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue