[Buildroot] [PATCH 04/34] reproducibility: make rootfs.tar reproducible
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sat May 7 13:23:18 UTC 2016
Hello,
On Sat, 30 Apr 2016 09:49:00 +0200, Gilles Chanteperdrix wrote:
> +define ROOTFS_TAR_CMD
> + cd $(TARGET_DIR) && { \
> + find . -\( -! -type d -o -empty -\) -print0 | \
> + sort -z | \
> + tar --null -T - -c$(TAR_OPTS)f $@ --mtime=@$(SOURCE_DATE_EPOCH) --numeric-owner; \
> + }
We normally write such constructs as:
(cd $(TARGET_DIR) && \
foo ....)
However, this raises the question of what's needed for all the other
filesystem formats. Will they all have to implement a different
ROOTFS_<foo>_CMD variable ? Or will there be some commonalities that
should be factored out in the common rootfs image infrastructure ?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list