mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +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
|
||||
debug_strip() {
|
||||
if [ ! "$DEBUG" = yes ]; then
|
||||
find $* -type f -executable | xargs $STRIP 1>/dev/null || :
|
||||
find $* -type f -executable | xargs $STRIP 2>/dev/null || :
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -158,6 +158,8 @@ pack_addon() {
|
||||
}
|
||||
|
||||
if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
||||
setup_toolchain $TARGET
|
||||
|
||||
$SCRIPTS/build $@
|
||||
|
||||
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
|
||||
addon
|
||||
debug_strip $ADDON_BUILD/$PKG_ADDON_ID
|
||||
else
|
||||
echo "*** unsupported package format. please convert your package ***"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user