tar.mk 489 B

12345678910111213141516
  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. define ROOTFS_TAR_CMD
  9. (cd $(TARGET_DIR); find -print0 | LC_ALL=C sort -z | \
  10. tar $(TAR_OPTS) -cf $@ --null --no-recursion -T - --numeric-owner)
  11. endef
  12. $(eval $(rootfs))