Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / target / linux / generic / pending-4.19 / 403-mtd-hook-mtdsplit-to-Kbuild.patch
1 From: Gabor Juhos <juhosg@openwrt.org>
2 Subject: [PATCH] kernel/3.10: move squashfs check from rootfs split code into a separate file
3
4 lede-commit: d89bea92b31b4e157a0fa438e75370f089f73427
5 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
6 ---
7  drivers/mtd/Kconfig  | 2 ++
8  drivers/mtd/Makefile | 2 ++
9  2 files changed, 4 insertions(+)
10
11 --- a/drivers/mtd/Kconfig
12 +++ b/drivers/mtd/Kconfig
13 @@ -26,6 +26,8 @@ config MTD_SPLIT_FIRMWARE_NAME
14         depends on MTD_SPLIT_FIRMWARE
15         default "firmware"
16  
17 +source "drivers/mtd/mtdsplit/Kconfig"
18 +
19  endmenu
20  
21  config MTD_TESTS
22 --- a/drivers/mtd/Makefile
23 +++ b/drivers/mtd/Makefile
24 @@ -7,6 +7,8 @@
25  obj-$(CONFIG_MTD)              += mtd.o
26  mtd-y                          := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
27  
28 +obj-$(CONFIG_MTD_SPLIT)                += mtdsplit/
29 +
30  obj-$(CONFIG_MTD_OF_PARTS)     += ofpart.o
31  obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
32  obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o