scripts/create_addon: always setup toolchain when creating addon

If addon wants to strip binaries we need to have STRIP set up.
Without running 'build' setup_toolchain is not called and stripping fails.
Make sure we also setup paths before creating package.
This commit is contained in:
kszaq 2017-02-09 00:05:26 +01:00 committed by MilhouseVH
parent 2e03e63b6b
commit b27b319c9f

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