diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-02-09 16:06:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-02-09 16:06:06 +0000 |
commit | cd0a84da7e04e09353e04e1d0500641db6500e21 (patch) | |
tree | 29a7ee866b750e872b98ed184414ce270783fdc2 /target/tar/tarroot.mk | |
parent | 80e5aaa56b6985890d09a23228e0cbf55d298356 (diff) |
allow users to generate tarballs of the target filesystem
Diffstat (limited to 'target/tar/tarroot.mk')
-rw-r--r-- | target/tar/tarroot.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/tar/tarroot.mk b/target/tar/tarroot.mk new file mode 100644 index 000000000..a7627bf40 --- /dev/null +++ b/target/tar/tarroot.mk @@ -0,0 +1,25 @@ +############################################################# +# +# tar to archive target filesystem +# +############################################################# + +TAR_OPTS := $(strip $(BR2_TARGET_ROOTFS_TAR_OPTIONS)) + +TAR_TARGET := $(IMAGE).tar + +$(TAR_TARGET): + -@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: |