kumquat-buildroot/fs/ubifs/ubifs.mk

25 lines
692 B
Makefile
Raw Normal View History

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
2008-04-08 06:28:18 +02:00
ifeq ($(BR2_TARGET_ROOTFS_UBIFS_RT_LZI),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
ROOTFS_UBIFS_DEPENDENCIES = host-mtd
2008-04-04 06:25:18 +02: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
$(eval $(call ROOTFS_TARGET,ubifs))