diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-11 09:15:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-06 10:17:53 +0200 |
commit | eea6d75d1bfa91ff5da7992ecbc1ff828542c342 (patch) | |
tree | afb45ff26e7730ee113d6702701757e910423fc0 /drivers/mtd/ubi/Kconfig | |
parent | e4715ba031ef75ea2fa286aed153c7e722a2fa23 (diff) | |
download | barebox-eea6d75d1bfa91ff5da7992ecbc1ff828542c342.tar.gz barebox-eea6d75d1bfa91ff5da7992ecbc1ff828542c342.tar.xz |
mtd: ubi: Make debug options configurable
This makes the UBI debug options configurable. This make the debug
options actually available to the user and also allows the compiler
to optimize away the debug code when the options are disabled.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/ubi/Kconfig')
-rw-r--r-- | drivers/mtd/ubi/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index ccd547dd71..4c497931f1 100644 --- a/drivers/mtd/ubi/Kconfig +++ b/drivers/mtd/ubi/Kconfig @@ -77,4 +77,17 @@ config MTD_UBI_FASTMAP If in doubt, say "N". +comment "UBI debugging options" + +config MTD_UBI_CHECK_IO + bool "Check IO operations" + help + When enabled UBI will check if erased blocks are really erased and if areas + written to are empty before writing. + +config MTD_UBI_GENERAL_EXTRA_CHECKS + bool "general extra checks" + help + This enables some general extra checks in UBI + endif # MTD_UBI |