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
|
|
|
|
2017-12-27 00:20:45 +01:00
|
|
|
UBIFS_OPTS = \
|
|
|
|
-e $(BR2_TARGET_ROOTFS_UBIFS_LEBSIZE) \
|
|
|
|
-c $(BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT) \
|
|
|
|
-m $(BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE)
|
2008-04-04 06:25:18 +02:00
|
|
|
|
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
|
2017-07-05 13:14:20 +02:00
|
|
|
$(HOST_DIR)/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
|
|
|
|
2017-12-28 11:40:32 +01:00
|
|
|
$(eval $(rootfs))
|