From: Paul Spooren Date: Mon, 18 Jul 2022 21:51:03 +0000 (+0200) Subject: config: add erofs filesystem X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fheads%2Ferofs;p=openwrt%2Fstaging%2Faparcar.git config: add erofs filesystem It is now possible to select erofs as rootfs if Kernel 5.15 is selected. Signed-off-by: Paul Spooren --- diff --git a/config/Config-images.in b/config/Config-images.in index dcd7575c3e..f3d3fbeb44 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -160,6 +160,12 @@ menu "Target Images" 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 diff --git a/include/image.mk b/include/image.mk index bdcf20d30c..56aee64f9f 100644 --- a/include/image.mk +++ b/include/image.mk @@ -88,6 +88,7 @@ endif 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 @@ -225,6 +226,10 @@ define Image/mkfs/squashfs-common -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