From: Alexander Couzens Date: Fri, 20 Sep 2019 03:36:13 +0000 (+0200) Subject: rootfs.mk: ensure all timestamp are set to SOURCE_DATE_EPOCH X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bf28e83dc4e58ba35a82ea0ef60f256d4ae4c131;p=openwrt%2Fstaging%2Flynxis.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 all files and links have the correct timestamp. Fixes initramfs differ. Signed-off-by: Alexander Couzens --- diff --git a/include/rootfs.mk b/include/rootfs.mk index f2d2494ae2..b6775c7e15 100644 --- a/include/rootfs.mk +++ b/include/rootfs.mk @@ -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