mt7620: image.mk: make elecom-header reproducible
elecom-header adds a timestamp dependency. Replace the timestamps with SOURCE_DATE_EPOCH [0] variable. [0] https://reproducible-builds.org/specs/source-date-epoch/ Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
This commit is contained in:
parent
1c68fd6d75
commit
2e1f73a79f
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ define Build/elecom-header
|
||||||
mkhash md5 $(KDIR)/v_0.0.0.bin && \
|
mkhash md5 $(KDIR)/v_0.0.0.bin && \
|
||||||
echo 458 \
|
echo 458 \
|
||||||
) | mkhash md5 > $(KDIR)/v_0.0.0.md5
|
) | mkhash md5 > $(KDIR)/v_0.0.0.md5
|
||||||
$(STAGING_DIR_HOST)/bin/tar -cf $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
|
$(STAGING_DIR_HOST)/bin/tar -c \
|
||||||
|
$(if $(SOURCE_DATE_EPOCH),--mtime=@$(SOURCE_DATE_EPOCH)) \
|
||||||
|
-f $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/zyimage
|
define Build/zyimage
|
||||||
|
|
Loading…
Reference in a new issue