mirror of https://github.com/hak5/openwrt.git
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
parent
81e93fff7d
commit
8cb13f4e6d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue