projects
/
openwrt
/
staging
/
dedeckeh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e93ff
)
rootfs.mk: ensure all timestamp are set to SOURCE_DATE_EPOCH
author
Alexander Couzens
<lynxis@fe80.eu>
Fri, 20 Sep 2019 03:36:13 +0000
(
05:36
+0200)
committer
Alexander Couzens
<lynxis@fe80.eu>
Sat, 21 Sep 2019 01:26:38 +0000
(
03:26
+0200)
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>
include/rootfs.mk
patch
|
blob
|
history
diff --git
a/include/rootfs.mk
b/include/rootfs.mk
index f2d2494ae26445d1a8f79eefecd2887a868a88ab..b6775c7e15fb00e935737fd0b801ca7bef6e2a0d 100644
(file)
--- 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