Commit a0f3cb1c authored by Mark Jackson's avatar Mark Jackson Committed by Peter Korsgaard
Browse files

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: default avatarMark Jackson <mpfj@newflow.co.uk>
Acked-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 5419651b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -87,6 +87,12 @@ config BR2_TARGET_ROOTFS_UBIFS_XZ

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
	depends on BR2_TARGET_ROOTFS_UBIFS
	bool "Embed into an UBI image"
@@ -108,3 +114,9 @@ config BR2_TARGET_ROOTFS_UBI_SUBSIZE
	help
	  Tells ubinize that the flash supports sub-pages and the sub-page
	  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.
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ ifneq ($(BR2_TARGET_ROOTFS_UBI_SUBSIZE),0)
UBI_UBINIZE_OPTS += -s $(BR2_TARGET_ROOTFS_UBI_SUBSIZE)
endif

UBI_UBINIZE_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBI_OPTS))

ROOTFS_UBI_DEPENDENCIES = rootfs-ubifs

define ROOTFS_UBI_CMD
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@ ifeq ($(BR2_TARGET_ROOTFS_UBIFS_RT_NONE),y)
UBIFS_OPTS += -x none
endif

UBIFS_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBIFS_OPTS))

ROOTFS_UBIFS_DEPENDENCIES = host-mtd

define ROOTFS_UBIFS_CMD