blob: e39c2fdbf1e347a473511d4b834f2912047882ea [file] [log] [blame]
################################################################################
#
# tar to archive target filesystem
#
################################################################################
TAR_OPTS := $(call qstrip,$(BR2_TARGET_ROOTFS_TAR_OPTIONS))
define ROOTFS_TAR_CMD
(cd $(TARGET_DIR); find -print0 | LC_ALL=C sort -z | \
tar $(TAR_OPTS) -cf $@ --null --no-recursion -T - --numeric-owner)
endef
$(eval $(rootfs))