2020-03-16 02:58:38 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Build the EROFS root filesystem image
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
ROOTFS_EROFS_DEPENDENCIES = host-erofs-utils
|
|
|
|
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_EROFS_LZ4HC),y)
|
|
|
|
ROOTFS_EROFS_ARGS += -zlz4hc
|
|
|
|
endif
|
|
|
|
|
2023-01-16 09:33:52 +01:00
|
|
|
ifeq ($(BR2_REPRODUCIBLE),y)
|
|
|
|
ROOTFS_EROFS_ARGS += \
|
|
|
|
-T $(SOURCE_DATE_EPOCH) \
|
|
|
|
-U 00000000-0000-0000-0000-000000000000
|
|
|
|
endif
|
|
|
|
|
2021-07-14 16:55:28 +02:00
|
|
|
ifneq ($(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE),0)
|
|
|
|
ROOTFS_EROFS_ARGS += -C$(strip $(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE))
|
|
|
|
endif
|
|
|
|
|
2020-03-16 02:58:38 +01:00
|
|
|
define ROOTFS_EROFS_CMD
|
|
|
|
$(HOST_DIR)/bin/mkfs.erofs $(ROOTFS_EROFS_ARGS) $@ $(TARGET_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(rootfs))
|