summaryrefslogtreecommitdiffstats
path: root/target/tar
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-10-05 12:55:40 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-10-05 12:55:40 +0000
commit5cfb2f794f603475b82a545356df2ba58a3b1176 (patch)
tree2cd488dc164d313aef7e039d41b6adecdbab967c /target/tar
parent0c16c17f539ccbc91d4dd1ea5168e7beb390fa5d (diff)
downloadbuildroot-novena-5cfb2f794f603475b82a545356df2ba58a3b1176.tar.gz
buildroot-novena-5cfb2f794f603475b82a545356df2ba58a3b1176.zip
- fix some whitespace damage..
- add COPYTO settings for cpio and tar and remove that ugly hardcoded DATE from that was added by Ulf
Diffstat (limited to 'target/tar')
-rw-r--r--target/tar/Config.in10
-rw-r--r--target/tar/tarroot.mk9
2 files changed, 19 insertions, 0 deletions
diff --git a/target/tar/Config.in b/target/tar/Config.in
index 4787ec094..03f9330cd 100644
--- a/target/tar/Config.in
+++ b/target/tar/Config.in
@@ -48,3 +48,13 @@ config BR2_TARGET_ROOTFS_TAR_OPTIONS
Any other flags you want to pass to tar
Refer to tar --help for details
+config BR2_TARGET_ROOTFS_TAR_COPYTO
+ string "also copy the image to..."
+ depends on BR2_TARGET_ROOTFS_TAR
+ default ""
+ help
+ Copies the resulting image to a secondary location
+ like a tftp server's root directory.
+
+ Example: $(IMAGE)-$(DATE).tar
+
diff --git a/target/tar/tarroot.mk b/target/tar/tarroot.mk
index 913cf82a1..b47259e2d 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: