aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image/mt7620.mk
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2019-11-06 11:15:21 -1000
committerDaniel Golle <daniel@makrotopia.org>2019-11-06 23:23:52 +0100
commit9fa061a7d34b20faaa70705ae5e6556d2650d83f (patch)
treed18ce0e0cbd412565cbf553be430bb2caad0c8a3 /target/linux/ramips/image/mt7620.mk
parent80a799125bf34b49793e7757e3d08d30030c1b92 (diff)
downloadupstream-9fa061a7d34b20faaa70705ae5e6556d2650d83f.tar.gz
upstream-9fa061a7d34b20faaa70705ae5e6556d2650d83f.tar.bz2
upstream-9fa061a7d34b20faaa70705ae5e6556d2650d83f.zip
ramips, mt7620: reproducible elecom-header uid/gid
The elecom-header renames the firmware image to v_0.0.0.bin, stores its MD5 sum as v_0.0.0.md5 and tars both files again. Both v_0.0.0 files are created as the build user making it harder to reproduce. This commit sets the owner/group of both files to root by adding extra options to the final tar command. Before: 0 buildbot (101) buildbot (102) 3932164 2019-11-05 14:43:22.000000 v_0.0.0.bin 0 buildbot (101) buildbot (102) 33 2019-11-05 14:43:22.000000 v_0.0.0.md5 After: 0 root (0) root (0) 3932164 2019-11-05 23:43:08.000000 v_0.0.0.bin 0 root (0) root (0) 33 2019-11-05 23:43:08.000000 v_0.0.0.md5 Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'target/linux/ramips/image/mt7620.mk')
-rw-r--r--target/linux/ramips/image/mt7620.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index bca2363699..88437a6904 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -13,7 +13,7 @@ define Build/elecom-header
) | mkhash md5 > $(KDIR)/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
+ --owner=0 --group=0 -f $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
endef
define Device/aigale_ai-br100