Author: nbd
Date: 2014-08-26 14:32:51 +0200 (Tue, 26 Aug 2014)
New Revision: 42302

Modified:
   trunk/target/toolchain/Makefile
Log:
target/toolchain: strip files, leave out the initial gcc

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/target/toolchain/Makefile
===================================================================
--- trunk/target/toolchain/Makefile     2014-08-26 12:16:18 UTC (rev 42301)
+++ trunk/target/toolchain/Makefile     2014-08-26 12:32:51 UTC (rev 42302)
@@ -19,6 +19,7 @@
 
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 @@
                        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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to