target/sdk: leave out some unnecessary directories
authorFelix Fietkau <nbd@openwrt.org>
Thu, 13 Mar 2014 14:13:57 +0000 (14:13 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 13 Mar 2014 14:13:57 +0000 (14:13 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39914

target/sdk/Makefile

index 376aef8eb0f5430e968dfbe763cf04d82e9440ba..14cb8d0644d6f48f8e9cdcb39079936aace58be8 100644 (file)
@@ -16,15 +16,25 @@ PKG_CPU:=$(word 1,$(subst -, ,$(shell $(HOSTCC) -dumpmachine)))
 
 SDK_NAME:=OpenWrt-SDK-$(BOARD)-for-$(PKG_OS)-$(PKG_CPU)-gcc-$(GCCV)_$(LIBC)-$(LIBCV)
 SDK_BUILD_DIR:=$(BUILD_DIR)/$(SDK_NAME)
+
+STAGING_SUBDIR_TARGET := staging_dir/target-$(ARCH)$(ARCH_SUFFIX)_$(LIBC)-$(LIBCV)$(if $(CONFIG_arm),_eabi)
+
 EXCLUDE_DIRS:=*/ccache \
        */stamp \
        */stampfiles \
        */man \
        */info \
+       */root-* \
+       initial \
+       *.install.clean \
+       *.install.flags \
+       *.install \
+       */doc \
+       $(STAGING_SUBDIR_TARGET)/usr/bin
 
 SDK_DIRS = \
                staging_dir/host \
-               staging_dir/target-$(ARCH)$(ARCH_SUFFIX)_$(LIBC)-$(LIBCV)$(if $(CONFIG_arm),_eabi) \
+               $(STAGING_SUBDIR_TARGET) \
                staging_dir/toolchain-$(ARCH)$(ARCH_SUFFIX)_gcc-$(GCCV)_$(LIBC)-$(LIBCV)$(if $(CONFIG_arm),_eabi) \
 
 SVN_PACKAGE_URL=$(shell svn info ../../package | awk '/^URL:/ { print $$2; }')