2008-04-04 06:25:18 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Build the ubifs root filesystem image
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
UBIFS_OPTS := -e $(BR2_TARGET_ROOTFS_UBIFS_LEBSIZE) -c $(BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT) -m $(BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE)
|
|
|
|
|
2008-04-08 06:28:18 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_UBIFS_RT_ZLIB),y)
|
2008-04-04 06:25:18 +02:00
|
|
|
UBIFS_OPTS += -x zlib
|
|
|
|
endif
|
2010-07-01 15:35:00 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_UBIFS_RT_LZO),y)
|
2008-04-04 06:25:18 +02:00
|
|
|
UBIFS_OPTS += -x lzo
|
|
|
|
endif
|
2008-04-08 06:28:18 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_UBIFS_RT_NONE),y)
|
2008-04-04 06:25:18 +02:00
|
|
|
UBIFS_OPTS += -x none
|
|
|
|
endif
|
|
|
|
|
2010-03-10 00:16:30 +01:00
|
|
|
ROOTFS_UBIFS_DEPENDENCIES = host-mtd
|
2008-04-04 06:25:18 +02:00
|
|
|
|
2010-03-10 00:16:30 +01:00
|
|
|
define ROOTFS_UBIFS_CMD
|
|
|
|
$(HOST_DIR)/usr/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $$@
|
|
|
|
endef
|
2008-04-04 06:25:18 +02:00
|
|
|
|
2010-03-10 00:16:30 +01:00
|
|
|
$(eval $(call ROOTFS_TARGET,ubifs))
|