tar.mk 648 B

12345678910111213141516171819
  1. ################################################################################
  2. #
  3. # tar to archive target filesystem
  4. #
  5. ################################################################################
  6. TAR_OPTS = $(call qstrip,$(BR2_TARGET_ROOTFS_TAR_OPTIONS))
  7. ROOTFS_TAR_DEPENDENCIES = $(BR2_TAR_HOST_DEPENDENCY)
  8. # do not store atime/ctime in PaxHeaders to ensure reproducbility
  9. TAR_OPTS += --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0
  10. define ROOTFS_TAR_CMD
  11. (cd $(TARGET_DIR); find -print0 | LC_ALL=C sort -z | \
  12. tar $(TAR_OPTS) -cf $@ --null --xattrs-include='*' --no-recursion -T - --numeric-owner)
  13. endef
  14. $(eval $(rootfs))