summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou2017-03-05 08:17:17 +0000
committerYousong Zhou2017-03-05 09:23:46 +0000
commit7c22af847de11fea6f9e6ee3a65980a5193c413d (patch)
tree4c2f2db51d6cc8e6617d0ad6c993e50f3a775709
parent78c1140acb3a4f439d502b24b36d296a453a6af1 (diff)
downloadyousong-7c22af847de11fea6f9e6ee3a65980a5193c413d.tar.gz
build: cleanup tmp/ dir of target rootfs
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--include/rootfs.mk1
-rw-r--r--package/Makefile2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/rootfs.mk b/include/rootfs.mk
index dc400a05ed..bd9af6ae49 100644
--- a/include/rootfs.mk
+++ b/include/rootfs.mk
@@ -80,6 +80,7 @@ define prepare_rootfs
@-find $(1) -name .svn | $(XARGS) rm -rf
@-find $(1) -name .git | $(XARGS) rm -rf
@-find $(1) -name '.#*' | $(XARGS) rm -f
+ rm -rf $(1)/tmp/*
rm -f $(1)/usr/lib/opkg/lists/*
rm -f $(1)/usr/lib/opkg/info/*.postinst*
$(call clean_ipkg,$(1))
diff --git a/package/Makefile b/package/Makefile
index ac8faecef2..4fdf415046 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -63,7 +63,7 @@ endif
$(curdir)/install: $(TMP_DIR)/.build $(curdir)/merge $(if $(CONFIG_TARGET_PER_DEVICE_ROOTFS),$(curdir)/merge-index)
- find $(STAGING_DIR_ROOT) -type d | $(XARGS) chmod 0755
rm -rf $(TARGET_DIR) $(TARGET_DIR_ORIG)
- [ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp
+ mkdir -p $(TARGET_DIR)/tmp
$(call opkg,$(TARGET_DIR)) install \
$(call opkg_package_files,$(shell cat $(PACKAGE_INSTALL_FILES) 2>/dev/null))
@for file in $(PACKAGE_INSTALL_FILES); do \