[uClibc-cvs] r9832 - in trunk/buildroot/target: . tar

uclibc at mail.uclibc.org uclibc at mail.uclibc.org
Wed Feb 9 16:06:07 UTC 2005


Author: vapier
Date: 2005-02-09 09:06:06 -0700 (Wed, 09 Feb 2005)
New Revision: 9832

Log:
allow users to generate tarballs of the target filesystem
Added:
   trunk/buildroot/target/tar/
   trunk/buildroot/target/tar/Config.in
   trunk/buildroot/target/tar/Makefile.in
   trunk/buildroot/target/tar/tarroot.mk
Modified:
   trunk/buildroot/target/Config.in


Changeset:
Modified: trunk/buildroot/target/Config.in
===================================================================
--- trunk/buildroot/target/Config.in	2005-02-09 16:05:07 UTC (rev 9831)
+++ trunk/buildroot/target/Config.in	2005-02-09 16:06:06 UTC (rev 9832)
@@ -1,11 +1,9 @@
-#
-
 menu "Target Options"
 
 source "target/cramfs/Config.in"
 source "target/ext2/Config.in"
 source "target/jffs2/Config.in"
 source "target/squashfs/Config.in"
+source "target/tar/Config.in"
 
 endmenu
-

Added: trunk/buildroot/target/tar/Config.in
===================================================================
--- trunk/buildroot/target/tar/Config.in	2005-02-09 16:05:07 UTC (rev 9831)
+++ trunk/buildroot/target/tar/Config.in	2005-02-09 16:06:06 UTC (rev 9832)
@@ -0,0 +1,14 @@
+menuconfig BR2_TARGET_ROOTFS_TAR
+	bool "tar the root filesystem for the target device"
+	default n
+	help
+	  Build a tar archive of the root filesystem
+
+config BR2_TARGET_ROOTFS_TAR_OPTIONS
+	string "random options to pass to tar"
+	depends on BR2_TARGET_ROOTFS_TAR
+	default ""
+	help
+	  Common options:
+	   j - compress with bzip2
+	   z - compress with gzip

Added: trunk/buildroot/target/tar/Makefile.in
===================================================================
--- trunk/buildroot/target/tar/Makefile.in	2005-02-09 16:05:07 UTC (rev 9831)
+++ trunk/buildroot/target/tar/Makefile.in	2005-02-09 16:06:06 UTC (rev 9832)
@@ -0,0 +1,3 @@
+ifeq ($(strip $(BR2_TARGET_ROOTFS_TAR)),y)
+TARGETS+=tarroot
+endif

Added: trunk/buildroot/target/tar/tarroot.mk
===================================================================
--- trunk/buildroot/target/tar/tarroot.mk	2005-02-09 16:05:07 UTC (rev 9831)
+++ trunk/buildroot/target/tar/tarroot.mk	2005-02-09 16:06:06 UTC (rev 9832)
@@ -0,0 +1,25 @@
+#############################################################
+#
+# tar to archive target filesystem
+#
+#############################################################
+
+TAR_OPTS := $(strip $(BR2_TARGET_ROOTFS_TAR_OPTIONS))
+
+TAR_TARGET := $(IMAGE).tar
+
+$(TAR_TARGET):
+	- at find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+	@rm -rf $(TARGET_DIR)/usr/man
+	@rm -rf $(TARGET_DIR)/usr/share/man
+	@rm -rf $(TARGET_DIR)/usr/info
+	tar -c$(TAR_OPTS)f $(TAR_TARGET) -C $(TARGET_DIR) .
+		
+tarroot: $(TAR_TARGET)
+	@ls -l $(TAR_TARGET)
+
+tarroot-source:
+
+tarroot-clean:
+
+tarroot-dirclean:




More information about the uClibc-cvs mailing list