Author: nbd
Date: 2016-02-01 00:29:41 +0100 (Mon, 01 Feb 2016)
New Revision: 48589

Modified:
   trunk/target/linux/ar71xx/image/Makefile
Log:
ar71xx/image: use SOURCE_DATE_EPOCH for mksquashfs-lzma

Signed-off-by: Alexander Couzens <[email protected]>

Modified: trunk/target/linux/ar71xx/image/Makefile
===================================================================
--- trunk/target/linux/ar71xx/image/Makefile    2016-01-31 23:29:31 UTC (rev 
48588)
+++ trunk/target/linux/ar71xx/image/Makefile    2016-01-31 23:29:41 UTC (rev 
48589)
@@ -22,7 +22,9 @@
        cp $@ [email protected]/image/uImage
        $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
                [email protected] [email protected] \
-               -noappend -root-owned -be -b 65536
+               -noappend -root-owned -be -b 65536 \
+               $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
+
        dd if=/dev/zero bs=1k count=1 >> [email protected]
        mkimage \
                -A mips -O linux -T filesystem -C none \
@@ -2064,7 +2066,8 @@
        cat $(KDIR_TMP)/vmlinux-$(2).uImage > $(KDIR_TMP)/$(2)/image/uImage
        $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
                $(KDIR_TMP)/$(2) $(KDIR_TMP)/vmlinux-$(2).uImage.squashfs.tmp1 \
-               -noappend -root-owned -be -b 65536
+               -noappend -root-owned -be -b 65536 \
+               $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
        ( \
                cat $(KDIR_TMP)/vmlinux-$(2).uImage.squashfs.tmp1; \
                dd if=/dev/zero bs=1k count=1 \
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to