Commit 6a0fd4b1 authored by nbd's avatar nbd

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

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

Backport of r42302

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42303 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 693458a4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment