kumquat-buildroot/fs/ubifs/ubifs.mk

31 lines
778 B
Makefile
Raw Normal View History

################################################################################
2008-04-04 06:25:18 +02:00
#
# Build the ubifs root filesystem image
#
################################################################################
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-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
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
UBIFS_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBIFS_OPTS))
ROOTFS_UBIFS_DEPENDENCIES = host-mtd
2008-04-04 06:25:18 +02:00
define ROOTFS_UBIFS_CMD
$(HOST_DIR)/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $@
endef
2008-04-04 06:25:18 +02:00
$(eval $(rootfs))