2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2008-04-04 06:25:18 +02:00
|
|
|
#
|
|
|
|
# Build the ubifs root filesystem image
|
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2008-04-04 06:25:18 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-04-24 04:29:19 +02:00
|
|
|
UBIFS_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBIFS_OPTS))
|
|
|
|
|
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
|
2013-01-20 15:03:13 +01:00
|
|
|
$(HOST_DIR)/usr/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $@
|
2010-03-10 00:16:30 +01:00
|
|
|
endef
|
2008-04-04 06:25:18 +02:00
|
|
|
|
2013-04-24 04:29:19 +02:00
|
|
|
$(eval $(call ROOTFS_TARGET,ubifs))
|