ar71xx: fix legacy image build error
[openwrt/openwrt.git] / target / linux / generic / patches-4.1 / 403-mtd-hook-mtdsplit-to-Kbuild.patch
1 --- a/drivers/mtd/Kconfig
2 +++ b/drivers/mtd/Kconfig
3 @@ -27,6 +27,8 @@ config MTD_SPLIT_FIRMWARE_NAME
4 depends on MTD_SPLIT_FIRMWARE
5 default "firmware"
6
7 +source "drivers/mtd/mtdsplit/Kconfig"
8 +
9 endmenu
10
11 config MTD_TESTS
12 --- a/drivers/mtd/Makefile
13 +++ b/drivers/mtd/Makefile
14 @@ -6,6 +6,8 @@
15 obj-$(CONFIG_MTD) += mtd.o
16 mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
17
18 +obj-$(CONFIG_MTD_SPLIT) += mtdsplit/
19 +
20 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
21 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
22 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o