2002-04-26 13:45:55 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Build the ext2 root filesystem image
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2005-02-12 05:32:17 +01:00
|
|
|
EXT2_OPTS :=
|
2002-10-23 09:56:20 +02:00
|
|
|
|
2008-12-08 09:15:58 +01:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_EXT2_SQUASH),y)
|
2005-02-19 00:58:16 +01:00
|
|
|
EXT2_OPTS += -U
|
2005-02-12 05:32:17 +01:00
|
|
|
endif
|
2005-01-23 11:53:06 +01:00
|
|
|
|
2005-02-12 05:32:17 +01:00
|
|
|
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
|
2008-12-08 09:15:58 +01:00
|
|
|
EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
|
2005-01-23 11:53:06 +01:00
|
|
|
endif
|
|
|
|
|
2005-02-12 05:32:17 +01:00
|
|
|
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_INODES)),0)
|
2008-12-08 09:15:58 +01:00
|
|
|
EXT2_OPTS += -N $(BR2_TARGET_ROOTFS_EXT2_INODES)
|
2005-01-23 11:53:06 +01:00
|
|
|
endif
|
|
|
|
|
2010-04-19 11:03:45 +02:00
|
|
|
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
|
2008-12-08 09:15:58 +01:00
|
|
|
EXT2_OPTS += -m $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
|
2005-01-23 11:53:06 +01:00
|
|
|
endif
|
|
|
|
|
2010-03-10 00:15:15 +01:00
|
|
|
ROOTFS_EXT2_DEPENDENCIES = host-genext2fs
|
2005-01-23 11:53:06 +01:00
|
|
|
|
2010-03-10 00:15:15 +01:00
|
|
|
define ROOTFS_EXT2_CMD
|
2010-04-19 14:24:11 +02:00
|
|
|
PATH=$(TARGET_PATH) fs/ext2/genext2fs.sh -d $(TARGET_DIR) $(EXT2_OPTS) $$@
|
2010-03-10 00:15:15 +01:00
|
|
|
endef
|
2002-04-26 13:45:55 +02:00
|
|
|
|
2010-04-19 14:24:11 +02:00
|
|
|
$(eval $(call ROOTFS_TARGET,ext2))
|