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