summaryrefslogtreecommitdiff
path: root/target/toolchain/Makefile
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 22:50:45 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 22:50:45 +0200
commita8bdfefc15187360b82345ceb79c2128f2c07c67 (patch)
tree5b6ea9b84195a2768151e0911a884b47553dea27 /target/toolchain/Makefile
parent462c281455b9337cd6be16c650d2e25bc832682d (diff)
downloadmtk-20170518-a8bdfefc15187360b82345ceb79c2128f2c07c67.zip
mtk-20170518-a8bdfefc15187360b82345ceb79c2128f2c07c67.tar.gz
mtk-20170518-a8bdfefc15187360b82345ceb79c2128f2c07c67.tar.bz2
build & release : downgrade to Barrier Breaker
Diffstat (limited to 'target/toolchain/Makefile')
-rw-r--r--target/toolchain/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/toolchain/Makefile b/target/toolchain/Makefile
index 20f753a..6e60a08 100644
--- a/target/toolchain/Makefile
+++ b/target/toolchain/Makefile
@@ -19,6 +19,7 @@ PKG_CPU:=$(word 1,$(subst -, ,$(shell $(HOSTCC) -dumpmachine)))
TOOLCHAIN_NAME:=OpenWrt-Toolchain-$(BOARD)-for-$(ARCH)$(ARCH_SUFFIX)-gcc-$(GCCV)$(DIR_SUFFIX)
TOOLCHAIN_BUILD_DIR:=$(BUILD_DIR)/$(TOOLCHAIN_NAME)
EXCLUDE_DIRS:=*/ccache \
+ */initial \
*/stamp \
*/stampfiles \
*/man \
@@ -46,6 +47,15 @@ $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.bz2: clean
ln -sf $(REAL_GNU_TARGET_NAME)-wrapper.sh $(REAL_GNU_TARGET_NAME)-$${app} ; \
done; \
)
+
+ @-( \
+ find \
+ $(TOOLCHAIN_BUILD_DIR)/*/bin \
+ $(TOOLCHAIN_BUILD_DIR)/*/*/bin \
+ $(TOOLCHAIN_BUILD_DIR)/*/libexec \
+ -type f; \
+ ) | xargs strip 2>/dev/null >/dev/null
+
echo REVISION:="$(REVISION)" > $(TOOLCHAIN_BUILD_DIR)/version.mk
find $(TOOLCHAIN_BUILD_DIR) -name .git | $(XARGS) rm -rf
find $(TOOLCHAIN_BUILD_DIR) -name .svn | $(XARGS) rm -rf