rootfs.mk: ensure all timestamp are set to SOURCE_DATE_EPOCH

Some tools doesn't support SOURCE_DATE_EPOCH (e.g. initramfs images).
Ensure all files of a root filesystem are set to SOURCE_DATE_EPOCH.
Make initramfs builds reproducible (for ramips).

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
master
Alexander Couzens 2019-09-20 05:36:13 +02:00
parent 81e93fff7d
commit 8cb13f4e6d
No known key found for this signature in database
GPG Key ID: C29E9DA6A0DF8604
1 changed files with 1 additions and 0 deletions

View File

@ -99,4 +99,5 @@ define prepare_rootfs
rm -rf $(1)/boot
$(call clean_ipkg,$(1))
$(call mklibs,$(1))
$(if $(SOURCE_DATE_EPOCH),find $(1)/ -mindepth 1 -execdir touch -hcd "@$(SOURCE_DATE_EPOCH)" "{}" +)
endef