From: Felix Fietkau Date: Fri, 13 Jan 2017 18:21:31 +0000 (+0100) Subject: imagebuilder: remove existing root filesystem images X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d1514e8f846ae629614abea7dc4611437698adfe;p=openwrt%2Fstaging%2Fjogo.git imagebuilder: remove existing root filesystem images Reduces tarball size and improves build time Signed-off-by: Felix Fietkau --- diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index 8a7c2093b9..13eed7e108 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -66,6 +66,7 @@ endif $(PKG_BUILD_DIR)/target/linux/*/patches{,-*} -cp $(KERNEL_BUILD_DIR)/* $(IB_KDIR)/ # don't copy subdirectories here -cp $(LINUX_DIR)/.config $(IB_LDIR)/ + rm -f $(IB_KDIR)/root.* if [ -x $(LINUX_DIR)/scripts/dtc/dtc ]; then \ $(INSTALL_DIR) $(IB_LDIR)/scripts/dtc; \ $(INSTALL_BIN) $(LINUX_DIR)/scripts/dtc/dtc $(IB_LDIR)/scripts/dtc/dtc; \