aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/Kconfig
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-12-04 10:03:30 -0500
committerTom Rini <trini@konsulko.com>2022-12-23 10:07:03 -0500
commit2c065aeeee8c4033f41836eafef0d949c94bf769 (patch)
tree2fa2a5d5a8045849f172a7914f0c675a677f7b93 /drivers/mtd/ubi/Kconfig
parentf00f676af6bcae0702efbac45b88c1b8b686d400 (diff)
downloadu-boot-2c065aeeee8c4033f41836eafef0d949c94bf769.zip
u-boot-2c065aeeee8c4033f41836eafef0d949c94bf769.tar.gz
u-boot-2c065aeeee8c4033f41836eafef0d949c94bf769.tar.bz2
mtd: ubi: Finish moving configuration to Kconfig
We have some unused and undefined symbols to remove references to, so do that. Move the final things that we do set (or need to keep unset) to Kconfig instead. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mtd/ubi/Kconfig')
-rw-r--r--drivers/mtd/ubi/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig
index 67a3cf1..5783d36 100644
--- a/drivers/mtd/ubi/Kconfig
+++ b/drivers/mtd/ubi/Kconfig
@@ -20,6 +20,18 @@ config MTD_UBI
if MTD_UBI
+config MTD_UBI_BLOCK
+ def_bool n
+
+config MTD_UBI_MODULE
+ def_bool y
+ help
+ ubi_init() disables returning error codes when built into the Linux
+ kernel so that it doesn't hang the Linux kernel boot process. Since
+ the U-Boot driver code depends on getting valid error codes from this
+ function we just tell the UBI layer that we are building as a module
+ (which only enables the additional error reporting).
+
config MTD_UBI_WL_THRESHOLD
int "UBI wear-leveling threshold"
default 4096