90dfc0a596
This enables EROFS big pcluster images for buildroot. Signed-off-by: Gao Xiang <hsiangkao@aol.com> [yann.morin.1998@free.fr: must be a multiple of 4KiB] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
22 lines
575 B
Makefile
22 lines
575 B
Makefile
################################################################################
|
|
#
|
|
# Build the EROFS root filesystem image
|
|
#
|
|
################################################################################
|
|
|
|
ROOTFS_EROFS_DEPENDENCIES = host-erofs-utils
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_EROFS_LZ4HC),y)
|
|
ROOTFS_EROFS_ARGS += -zlz4hc
|
|
endif
|
|
|
|
ifneq ($(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE),0)
|
|
ROOTFS_EROFS_ARGS += -C$(strip $(BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE))
|
|
endif
|
|
|
|
define ROOTFS_EROFS_CMD
|
|
$(HOST_DIR)/bin/mkfs.erofs $(ROOTFS_EROFS_ARGS) $@ $(TARGET_DIR)
|
|
endef
|
|
|
|
$(eval $(rootfs))
|