From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Jackson Date: Tue, 23 Apr 2013 09:08:35 +0100 Subject: [Buildroot] [PATCH] Allow extra options to be passed to ubifs creation tools In-Reply-To: <5134BD81.1070406@mimc.co.uk> References: <5134BD81.1070406@mimc.co.uk> Message-ID: <51764183.8000808@newflow.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 04/03/13 15:28, Mark Jackson wrote: > Signed-off-by: Mark Jackson > --- > fs/ubifs/Config.in | 14 ++++++++++++++ > fs/ubifs/ubi.mk | 2 ++ > fs/ubifs/ubifs.mk | 4 +++- > 3 files changed, 19 insertions(+), 1 deletion(-) > > diff --git a/fs/ubifs/Config.in b/fs/ubifs/Config.in > index a5ef5f2..f707737 100644 > --- a/fs/ubifs/Config.in > +++ b/fs/ubifs/Config.in > @@ -77,6 +77,13 @@ config BR2_TARGET_ROOTFS_UBIFS_LZMA > > endchoice > > +config BR2_TARGET_ROOTFS_UBIFS_OPTS > + string "Additional mkfs.ubifs options" > + default "" > + 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" > @@ -98,3 +105,10 @@ 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" > + default "" > + depends on BR2_TARGET_ROOTFS_UBI > + help > + Any additional ubinize options you may want to include. > diff --git a/fs/ubifs/ubi.mk b/fs/ubifs/ubi.mk > index 51ab42d..e9033e8 100644 > --- a/fs/ubifs/ubi.mk > +++ b/fs/ubifs/ubi.mk > @@ -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 > diff --git a/fs/ubifs/ubifs.mk b/fs/ubifs/ubifs.mk > index 8506dbd..dca2e04 100644 > --- a/fs/ubifs/ubifs.mk > +++ b/fs/ubifs/ubifs.mk > @@ -16,10 +16,12 @@ 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 > $(HOST_DIR)/usr/sbin/mkfs.ubifs -d $(TARGET_DIR) $(UBIFS_OPTS) -o $@ > endef > > -$(eval $(call ROOTFS_TARGET,ubifs)) > \ No newline at end of file > +$(eval $(call ROOTFS_TARGET,ubifs)) > Does anyone have any comments on this ? Can it be added ? Cheers Mark J.