aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2020-02-10 16:33:25 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-01 21:36:00 +0100
commita51b4ec94d93f1874fa4b6981d4bb8cb5d125b48 (patch)
tree76980ea291591eede883390d5b214b9a17abbf23 /target
parent39d22554f3a2cb0a8be05b7e00af2eff08304db7 (diff)
downloadupstream-a51b4ec94d93f1874fa4b6981d4bb8cb5d125b48.tar.gz
upstream-a51b4ec94d93f1874fa4b6981d4bb8cb5d125b48.tar.bz2
upstream-a51b4ec94d93f1874fa4b6981d4bb8cb5d125b48.zip
mvebu: image: rework uDPU-firmware recipe
Tar has ability to change current dir, so use that instead additional command invocation. Also being here, change tar arguments to make final archive reproducible. Cc: Scott Roberts <ttocsr@gmail.com> Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target')
-rw-r--r--target/linux/mvebu/image/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile
index d73f3e20fc..024e77969a 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -70,9 +70,15 @@ define Build/uDPU-firmware
(rm -fR $@-fw; mkdir -p $@-fw)
$(CP) $(BIN_DIR)/$(IMAGE_PREFIX)-initramfs.itb $@-fw/recovery.itb
$(CP) $@-boot.scr $@-fw/boot.scr
- (cd $(TARGET_DIR); $(TAR) -cvzf $@-fw/rootfs.tgz .)
- (cd $@.boot; $(TAR) -cvzf $@-fw/boot.tgz .)
- (cd $@-fw; $(TAR) -cvzf $(KDIR_TMP)/$(IMAGE_PREFIX)-firmware.tgz .)
+ $(TAR) -cvzp --numeric-owner --owner=0 --group=0 --sort=name \
+ $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
+ -f $@-fw/rootfs.tgz -C $(TARGET_DIR) .
+ $(TAR) -cvzp --numeric-owner --owner=0 --group=0 --sort=name \
+ $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
+ -f $@-fw/boot.tgz -C $@.boot .
+ $(TAR) -cvzp --numeric-owner --owner=0 --group=0 --sort=name \
+ $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
+ -f $(KDIR_TMP)/$(IMAGE_PREFIX)-firmware.tgz -C $@-fw .
endef
define Device/Default