mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
fs/erofs: enable support for reproducible build
By default, mkfs.erofs will sue the current date to set some metadata in the filesystem it generates, and will also use generate a random UUID for that filesystem. This is not reproducible. When BR2_REPRODUCIBLE is selected, set the filesystem timestamps to $SOURCE_DATE_EPOCH, and the filesystem UUID to the nil uuid (as good as any other arbitrary one). Signed-off-by: Casey Reeves <casey@xogium.me> [yann.morin.1998@free.fr: - one multi-line assignment, not two - slightly rephrase the commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
162f656884
commit
ac5ecaf868
@@ -10,6 +10,12 @@ ifeq ($(BR2_TARGET_ROOTFS_EROFS_LZ4HC),y)
|
|||||||
ROOTFS_EROFS_ARGS += -zlz4hc
|
ROOTFS_EROFS_ARGS += -zlz4hc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_REPRODUCIBLE),y)
|
||||||
|
ROOTFS_EROFS_ARGS += \
|
||||||
|
-T $(SOURCE_DATE_EPOCH) \
|
||||||
|
-U 00000000-0000-0000-0000-000000000000
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE),0)
|
ifneq ($(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE),0)
|
||||||
ROOTFS_EROFS_ARGS += -C$(strip $(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE))
|
ROOTFS_EROFS_ARGS += -C$(strip $(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE))
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user