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"
        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.
 
 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
 
 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))