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
|
|
|
|
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 | \
|
2016-12-27 18:42:03 +01:00
|
|
|
tar $(TAR_OPTS) -cf $@ --null --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))
|