diff options
author | Jo-Philipp Wich <jo@mein.io> | 2017-01-24 15:29:20 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-01-24 15:31:44 +0100 |
commit | f6de4a5025c758e05e53eb12f477a6dd27e4c42e (patch) | |
tree | 45900d4cdb34e60e097aab4a01993a554f3113ed /target/sdk/Makefile | |
parent | fc366fde0756cb342328d2ffd29756672b2624b5 (diff) | |
download | mtk-20170518-f6de4a5025c758e05e53eb12f477a6dd27e4c42e.zip mtk-20170518-f6de4a5025c758e05e53eb12f477a6dd27e4c42e.tar.gz mtk-20170518-f6de4a5025c758e05e53eb12f477a6dd27e4c42e.tar.bz2 |
sdk: explicitely remove ccache directories when packing SDK
Upon first invocation, the ccache program will create the required directory
hierarchy so there is no point in shipping these empty directories.
Removing those paths also avoids shipping dangling symlinks in case the
directories got linked elsewhere, e.g. into a shared global cache.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/sdk/Makefile')
-rw-r--r-- | target/sdk/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile index 47a7382..5108cec 100644 --- a/target/sdk/Makefile +++ b/target/sdk/Makefile @@ -17,6 +17,7 @@ SDK_NAME:=$(VERSION_DIST_SANITIZED)-sdk-$(if $(CONFIG_VERSION_FILENAMES),$(VERSI SDK_BUILD_DIR:=$(BUILD_DIR)/$(SDK_NAME) STAGING_SUBDIR_HOST := staging_dir/host +STAGING_SUBDIR_TARGET := staging_dir/$(TARGET_DIR_NAME) STAGING_SUBDIR_TOOLCHAIN := staging_dir/toolchain-$(ARCH)$(ARCH_SUFFIX)_gcc-$(GCCV)_$(LIBC)-$(LIBCV)$(if $(CONFIG_arm),_eabi) EXCLUDE_DIRS:=*/ccache/* \ @@ -118,6 +119,11 @@ $(BIN_DIR)/$(SDK_NAME).tar.xz: clean $(TOPDIR)/package/kernel/linux \ $(SDK_BUILD_DIR)/package/ + -rm -rf \ + $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_HOST)/ccache \ + $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TARGET)/ccache \ + $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_TOOLCHAIN)/ccache + -rm -f $(SDK_BUILD_DIR)/feeds.conf.default $(if $(BASE_FEED),echo "$(BASE_FEED)" > $(SDK_BUILD_DIR)/feeds.conf.default) if [ -f $(TOPDIR)/feeds.conf ]; then \ |