imagebuilder: x86 fails to build inside the imagebuilder
[openwrt/openwrt.git] / target / linux / generic / patches-3.12 / 403-mtd-hook-mtdsplit-to-Kbuild.patch
1 --- a/drivers/mtd/Kconfig
2 +++ b/drivers/mtd/Kconfig
3 @@ -36,6 +36,11 @@ config MTD_UIMAGE_SPLIT
4 depends on MTD_SPLIT_FIRMWARE
5 default y
6
7 +config MTD_SPLIT
8 + def_bool n
9 + help
10 + Generic MTD split support.
11 +
12 endmenu
13
14 config MTD_TESTS
15 --- a/drivers/mtd/Makefile
16 +++ b/drivers/mtd/Makefile
17 @@ -6,6 +6,8 @@
18 obj-$(CONFIG_MTD) += mtd.o
19 mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
20
21 +mtd-$(CONFIG_MTD_SPLIT) += mtdsplit.o
22 +
23 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
24 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
25 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o