59f9c4ca9f
In order to make tar images reproducible, force files order in tarball. This work was sponsored by `BA Robotic Systems'. Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 lines
451 B
Makefile
15 lines
451 B
Makefile
################################################################################
|
|
#
|
|
# 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 -T - --no-recursion --numeric-owner)
|
|
endef
|
|
|
|
$(eval $(call ROOTFS_TARGET,tar))
|