2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2005-02-09 17:06:06 +01:00
|
|
|
#
|
|
|
|
# tar to archive target filesystem
|
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2005-02-09 17:06:06 +01:00
|
|
|
|
2014-05-22 14:35:41 +02:00
|
|
|
TAR_OPTS := $(call qstrip,$(BR2_TARGET_ROOTFS_TAR_OPTIONS))
|
2006-04-07 22:30:43 +02:00
|
|
|
|
2018-03-24 15:20:03 +01:00
|
|
|
ROOTFS_TAR_DEPENDENCIES = $(BR2_TAR_HOST_DEPENDENCY)
|
|
|
|
|
2019-07-06 08:55:01 +02:00
|
|
|
# do not store atime/ctime in PaxHeaders to ensure reproducbility
|
|
|
|
TAR_OPTS += --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0
|
|
|
|
|
2010-03-10 00:14:16 +01:00
|
|
|
define ROOTFS_TAR_CMD
|
2016-11-23 13:58:43 +01:00
|
|
|
(cd $(TARGET_DIR); find -print0 | LC_ALL=C sort -z | \
|
2018-11-12 18:33:12 +01:00
|
|
|
tar $(TAR_OPTS) -cf $@ --null --xattrs-include='*' --no-recursion -T - --numeric-owner)
|
2010-03-10 00:14:16 +01:00
|
|
|
endef
|
2006-11-29 20:16:48 +01:00
|
|
|
|
2017-12-28 11:40:32 +01:00
|
|
|
$(eval $(rootfs))
|