mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 14:27:35 +00:00
Ports: Use the objcopy built as part of the toolchain
Relying on host tools working correctly is not a good idea, as they may be outdated (and therefore not support features like RELR relocations) or may not exist at all (like objcopy on macOS).
This commit is contained in:
parent
b3591d28df
commit
0be67ef12c
3 changed files with 8 additions and 4 deletions
|
@ -21,7 +21,7 @@ install() {
|
|||
if command -v convert >/dev/null; then
|
||||
run convert "app.ico[0]" app-16x16.png
|
||||
run convert "app.ico[1]" app-32x32.png
|
||||
run objcopy --add-section serenity_icon_s="app-16x16.png" "${SERENITY_INSTALL_ROOT}/opt/Super_Mario/uMario"
|
||||
run objcopy --add-section serenity_icon_m="app-32x32.png" "${SERENITY_INSTALL_ROOT}/opt/Super_Mario/uMario"
|
||||
run $OBJCOPY --add-section serenity_icon_s="app-16x16.png" "${SERENITY_INSTALL_ROOT}/opt/Super_Mario/uMario"
|
||||
run $OBJCOPY --add-section serenity_icon_m="app-32x32.png" "${SERENITY_INSTALL_ROOT}/opt/Super_Mario/uMario"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue