mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 21:58:06 +04:00
Build/boot-overlay copies the device trees and builds the boot script in $@.boot, so every file carries the build time. mkfs.ubifs writes st_mtime straight into the inode and has no SOURCE_DATE_EPOCH support, and the two tar calls pass neither --sort=name nor the options that pin the owner and the mode, so both nand.ubi and bootfs.tar.gz differ between builds. The diffoscope of the published bootfs.tar.gz shows both: wall clock mtimes on the device tree files, and a member order that follows readdir. Set the times in $@.boot once, before the UBIFS image and the tar are made. Sort the members of both archives and give them a fixed owner and mode, as the other archive recipes do. Signed-off-by: John Crispin <john@phrozen.org>