layerscape: make boot filesystem reproducible
authorDaniel Golle <[email protected]>
Mon, 28 Mar 2022 17:26:13 +0000 (18:26 +0100)
committerDaniel Golle <[email protected]>
Mon, 28 Mar 2022 19:52:54 +0000 (20:52 +0100)
Set timestamp option for make_ext4fs to make boot filesystem
reproducible.

Signed-off-by: Daniel Golle <[email protected]>
target/linux/layerscape/image/Makefile

index 3c8bdea480ffde5ee8e0545e9422be693f8d4968..52dc532c34f299ed8e3d686e4981085b4c1e9962 100644 (file)
@@ -36,7 +36,9 @@ endef
 define Build/ls-append-kernel
        mkdir -p [email protected] && \
        cp $(IMAGE_KERNEL) [email protected]/fitImage && \
-       make_ext4fs -J -L kernel -l "$(LS_SD_KERNELPART_SIZE)M" "[email protected]" "[email protected]" && \
+       make_ext4fs -J -L kernel -l "$(LS_SD_KERNELPART_SIZE)M" \
+               $(if $(SOURCE_DATE_EPOCH),-T $(SOURCE_DATE_EPOCH)) \
+               "[email protected]" "[email protected]" && \
        dd [email protected] >> $@ && \
        rm -rf [email protected] && \
        rm -f [email protected]