Merge pull request #1370 from kszaq/addon_stripping

Addon stripping improvements
This commit is contained in:
Christian Hewitt 2017-02-26 18:35:21 +04:00 committed by GitHub
commit e504d83ad8
2 changed files with 4 additions and 1 deletions

View File

@ -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
}

View File

@ -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