mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
Merge pull request #1370 from kszaq/addon_stripping
Addon stripping improvements
This commit is contained in:
commit
e504d83ad8
@ -507,7 +507,7 @@ show_config() {
|
|||||||
# strip
|
# strip
|
||||||
debug_strip() {
|
debug_strip() {
|
||||||
if [ ! "$DEBUG" = yes ]; then
|
if [ ! "$DEBUG" = yes ]; then
|
||||||
find $* -type f -executable | xargs $STRIP 1>/dev/null || :
|
find $* -type f -executable | xargs $STRIP 2>/dev/null || :
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,6 +158,8 @@ pack_addon() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
||||||
|
setup_toolchain $TARGET
|
||||||
|
|
||||||
$SCRIPTS/build $@
|
$SCRIPTS/build $@
|
||||||
|
|
||||||
printf "%${BUILD_INDENT}c CREATE ADDON ($PROJECT/$TARGET_ARCH) $1\n" ' '>&$SILENT_OUT
|
printf "%${BUILD_INDENT}c CREATE ADDON ($PROJECT/$TARGET_ARCH) $1\n" ' '>&$SILENT_OUT
|
||||||
@ -167,6 +169,7 @@ if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
|||||||
|
|
||||||
if [ "$(type -t addon)" = "function" ]; then
|
if [ "$(type -t addon)" = "function" ]; then
|
||||||
addon
|
addon
|
||||||
|
debug_strip $ADDON_BUILD/$PKG_ADDON_ID
|
||||||
else
|
else
|
||||||
echo "*** unsupported package format. please convert your package ***"
|
echo "*** unsupported package format. please convert your package ***"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user