layerscape: make boot filesystem reproducible
authorDaniel Golle <daniel@makrotopia.org>
Mon, 28 Mar 2022 17:26:13 +0000 (18:26 +0100)
committerDaniel Golle <daniel@makrotopia.org>
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 <daniel@makrotopia.org>
target/linux/layerscape/image/Makefile

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