summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-24 18:33:52 +0200
committerAlexander Couzens <lynxis@fe80.eu>2017-06-25 12:14:26 +0200
commitd98cafc7b6b06618ecc774efbb862b5e18b08831 (patch)
tree3d88e04cbe5684c81775fd9d4af9886e8b041f53
parentd6331d5583d17e4cf9f67906449cb11dcef4007c (diff)
downloadmtk-20170518-d98cafc7b6b06618ecc774efbb862b5e18b08831.zip
mtk-20170518-d98cafc7b6b06618ecc774efbb862b5e18b08831.tar.gz
mtk-20170518-d98cafc7b6b06618ecc774efbb862b5e18b08831.tar.bz2
ar71xx/images/senao: fix reproducible issue using tar
Use deterministic sorting Use numeric owner/group Set uid/gid to 0 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
-rw-r--r--target/linux/ar71xx/image/senao.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/senao.mk b/target/linux/ar71xx/image/senao.mk
index 0c56aa4..57e3610 100644
--- a/target/linux/ar71xx/image/senao.mk
+++ b/target/linux/ar71xx/image/senao.mk
@@ -9,6 +9,7 @@ define Build/senao-factory-image
$(CP) $(rootfs) $@.senao/openwrt-senao-$(board)-root.squashfs
$(TAR) -c \
+ --numeric-owner --owner=0 --group=0 --sort=name \
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
-C $@.senao . | gzip -9nc > $@