target/toolchain: strip files, leave out the initial gcc

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42302
This commit is contained in:
Felix Fietkau 2014-08-26 12:32:51 +00:00
parent c541b31e40
commit 315e567ab2

View file

@ -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_NAME:=OpenWrt-Toolchain-$(BOARD)-for-$(ARCH)$(ARCH_SUFFIX)-gcc-$(GCCV)$(DIR_SUFFIX)
TOOLCHAIN_BUILD_DIR:=$(BUILD_DIR)/$(TOOLCHAIN_NAME) TOOLCHAIN_BUILD_DIR:=$(BUILD_DIR)/$(TOOLCHAIN_NAME)
EXCLUDE_DIRS:=*/ccache \ EXCLUDE_DIRS:=*/ccache \
*/initial \
*/stamp \ */stamp \
*/stampfiles \ */stampfiles \
*/man \ */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} ; \ ln -sf $(REAL_GNU_TARGET_NAME)-wrapper.sh $(REAL_GNU_TARGET_NAME)-$${app} ; \
done; \ 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 echo REVISION:="$(REVISION)" > $(TOOLCHAIN_BUILD_DIR)/version.mk
find $(TOOLCHAIN_BUILD_DIR) -name .git | $(XARGS) rm -rf find $(TOOLCHAIN_BUILD_DIR) -name .git | $(XARGS) rm -rf
find $(TOOLCHAIN_BUILD_DIR) -name .svn | $(XARGS) rm -rf find $(TOOLCHAIN_BUILD_DIR) -name .svn | $(XARGS) rm -rf