aboutsummaryrefslogtreecommitdiff
path: root/target/tar/tarroot.mk
diff options
context:
space:
mode:
Diffstat (limited to 'target/tar/tarroot.mk')
-rw-r--r--target/tar/tarroot.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/tar/tarroot.mk b/target/tar/tarroot.mk
index 913cf82a18..b47259e2dd 100644
--- a/target/tar/tarroot.mk
+++ b/target/tar/tarroot.mk
@@ -21,6 +21,8 @@ ifeq ($(BR2_TARGET_ROOTFS_TAR_LZMA),y)
TAR_COMPRESSOR:=lzma -9 -c
TAR_COMPRESSOR_EXT:=lzma
endif
+ROOTFS_TAR_COPYTO:=$(strip $(subst ",,$(BR2_TARGET_ROOTFS_TAR_COPYTO)))
+# "))
tarroot: host-fakeroot makedevs
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
@@ -50,8 +52,15 @@ ifneq ($(TAR_COMPRESSOR),)
-rm -f $(TAR_TARGET).$()
PATH="$(STAGING_DIR)/sbin:$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/sbin:$(STAGING_DIR)/usr/bin:$(PATH)" $(TAR_COMPRESSOR) $(TAR_TARGET) > $(TAR_TARGET).$(TAR_COMPRESSOR_EXT)
endif
+ifneq ($(ROOTFS_TAR_COPYTO),)
+ $(Q)cp -f $(TAR_TARGET) $(ROOTFS_TAR_COPYTO)
+endif
-@rm -f $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(TAR_TARGET))
+EXT2_COPYTO := $(strip $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_COPYTO)))
+# "))
+
+
tarroot-source:
tarroot-clean: