소스 검색

layerscape: make boot filesystem reproducible

Set timestamp option for make_ext4fs to make boot filesystem
reproducible.

Signed-off-by: Daniel Golle <[email protected]>
Daniel Golle 3 년 전
부모
커밋
1c7e146f7e
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      target/linux/layerscape/image/Makefile

+ 3 - 1
target/linux/layerscape/image/Makefile

@@ -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]