default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
default 256
+ menuconfig TARGET_ROOTFS_EROFS
+ bool "erofs"
+ help
+ Build a erofs-lzma root filesystem.
+ depends on LINUX_5_15
+
menuconfig TARGET_ROOTFS_UBIFS
bool "ubifs"
default y if USES_UBIFS
JFFS2_BLOCKSIZE ?= 64k 128k
fs-types-$(CONFIG_TARGET_ROOTFS_SQUASHFS) += squashfs
+fs-types-$(CONFIG_TARGET_ROOTFS_EROFS) += erofs
fs-types-$(CONFIG_TARGET_ROOTFS_JFFS2) += $(addprefix jffs2-,$(JFFS2_BLOCKSIZE))
fs-types-$(CONFIG_TARGET_ROOTFS_JFFS2_NAND) += $(addprefix jffs2-nand-,$(NAND_BLOCKSIZE))
fs-types-$(CONFIG_TARGET_ROOTFS_EXT4FS) += ext4
-comp $(SQUASHFSCOMP) $(SQUASHFSOPT)
endef
+define Image/mkfs/erofs
+ $(STAGING_DIR_HOST)/bin/mkfs.erofs -zlzma,9 -Eztailpacking -C 65536 $@ $(call mkfs_target_dir,$(1))
+endef
+
ifeq ($(CONFIG_TARGET_ROOTFS_SECURITY_LABELS),y)
define Image/mkfs/squashfs
echo ". $(call mkfs_target_dir,$(1))/etc/selinux/config" > $@.fakeroot-script