fs/ubifs: allow extra options to be passed to ubifs creation tools

Allow extra options to be passed to ubifs creation tools.

Signed-off-by: Mark Jackson <mpfj@newflow.co.uk>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Mark Jackson 2013-04-24 02:29:19 +00:00 committed by Peter Korsgaard
parent 5419651bfa
commit a0f3cb1cbe
3 changed files with 17 additions and 1 deletions

View File

@ -87,6 +87,12 @@ config BR2_TARGET_ROOTFS_UBIFS_XZ
endchoice endchoice
config BR2_TARGET_ROOTFS_UBIFS_OPTS
string "Additional mkfs.ubifs options"
depends on BR2_TARGET_ROOTFS_UBIFS
help
Any additional mkfs.ubifs options you may want to include.
config BR2_TARGET_ROOTFS_UBI config BR2_TARGET_ROOTFS_UBI
depends on BR2_TARGET_ROOTFS_UBIFS depends on BR2_TARGET_ROOTFS_UBIFS
bool "Embed into an UBI image" bool "Embed into an UBI image"
@ -108,3 +114,9 @@ config BR2_TARGET_ROOTFS_UBI_SUBSIZE
help help
Tells ubinize that the flash supports sub-pages and the sub-page Tells ubinize that the flash supports sub-pages and the sub-page
size. Use 0 if subpages are not supported on flash chip. size. Use 0 if subpages are not supported on flash chip.
config BR2_TARGET_ROOTFS_UBI_OPTS
string "Additional ubinize options"
depends on BR2_TARGET_ROOTFS_UBI
help
Any additional ubinize options you may want to include.

View File

@ -10,6 +10,8 @@ ifneq ($(BR2_TARGET_ROOTFS_UBI_SUBSIZE),0)
UBI_UBINIZE_OPTS += -s $(BR2_TARGET_ROOTFS_UBI_SUBSIZE) UBI_UBINIZE_OPTS += -s $(BR2_TARGET_ROOTFS_UBI_SUBSIZE)
endif endif
UBI_UBINIZE_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBI_OPTS))
ROOTFS_UBI_DEPENDENCIES = rootfs-ubifs ROOTFS_UBI_DEPENDENCIES = rootfs-ubifs
define ROOTFS_UBI_CMD define ROOTFS_UBI_CMD

View File

@ -16,10 +16,12 @@ ifeq ($(BR2_TARGET_ROOTFS_UBIFS_RT_NONE),y)
UBIFS_OPTS += -x none UBIFS_OPTS += -x none
endif endif
UBIFS_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBIFS_OPTS))
ROOTFS_UBIFS_DEPENDENCIES = host-mtd ROOTFS_UBIFS_DEPENDENCIES = host-mtd
define ROOTFS_UBIFS_CMD define ROOTFS_UBIFS_CMD
$(HOST_DIR)/usr/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $@ $(HOST_DIR)/usr/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $@
endef endef
$(eval $(call ROOTFS_TARGET,ubifs)) $(eval $(call ROOTFS_TARGET,ubifs))