mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
a2ce32579f
Keep a separate source file per variant
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 601c7b4adb
)
24 lines
530 B
Diff
24 lines
530 B
Diff
--- a/drivers/mtd/nand/Kconfig
|
|
+++ b/drivers/mtd/nand/Kconfig
|
|
@@ -15,6 +15,10 @@ config MTD_NAND_ECC
|
|
bool
|
|
depends on MTD_NAND_CORE
|
|
|
|
+config MTD_NAND_MTK_BMT
|
|
+ bool "Support MediaTek NAND Bad-block Management Table"
|
|
+ default n
|
|
+
|
|
endmenu
|
|
|
|
endmenu
|
|
--- a/drivers/mtd/nand/Makefile
|
|
+++ b/drivers/mtd/nand/Makefile
|
|
@@ -2,6 +2,7 @@
|
|
|
|
nandcore-objs := core.o bbt.o
|
|
obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
|
|
+obj-$(CONFIG_MTD_NAND_MTK_BMT) += mtk_bmt.o mtk_bmt_v2.o mtk_bmt_bbt.o
|
|
|
|
obj-y += onenand/
|
|
obj-y += raw/
|