mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 22:13:34 +08:00
3286a4d6aa
The previous default, zero, just meant "use the default value of the filesystem generator", which happened to be 5% (the traditional value for all ext-creating tools we've ever seen). So, change the new default accordingly to 5%. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# Build the ext2 root filesystem image
|
|
#
|
|
################################################################################
|
|
|
|
EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
|
|
|
|
EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
|
|
|
|
EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
|
|
|
|
EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
|
|
|
|
EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
|
|
|
|
# qstrip results in stripping consecutive spaces into a single one. So the
|
|
# variable is not qstrip-ed to preserve the integrity of the string value.
|
|
EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
|
|
#" Syntax highlighting... :-/ )
|
|
|
|
EXT2_OPTS += -l "$(EXT2_LABEL)"
|
|
|
|
ROOTFS_EXT2_DEPENDENCIES = host-mke2img
|
|
|
|
define ROOTFS_EXT2_CMD
|
|
PATH=$(BR_PATH) mke2img -d $(TARGET_DIR) $(EXT2_OPTS) -o $@
|
|
endef
|
|
|
|
rootfs-ext2-symlink:
|
|
ln -sf rootfs.ext2$(ROOTFS_EXT2_COMPRESS_EXT) $(BINARIES_DIR)/rootfs.ext$(BR2_TARGET_ROOTFS_EXT2_GEN)$(ROOTFS_EXT2_COMPRESS_EXT)
|
|
|
|
.PHONY: rootfs-ext2-symlink
|
|
|
|
ifneq ($(BR2_TARGET_ROOTFS_EXT2_GEN),2)
|
|
ROOTFS_EXT2_POST_TARGETS += rootfs-ext2-symlink
|
|
endif
|
|
|
|
$(eval $(call ROOTFS_TARGET,ext2))
|