Changeset 42287


Ignore:
Timestamp:
2014-08-25T18:30:44+02:00 (3 years ago)
Author:
blogic
Message:

kernel: add own Kconfig for OpenWrt mtdsplit drivers

There are pretty many OpenWrt patches against mtd subsystem resulting
in a bit of mess and growing maintenance cost.
My idea is to use an extra "mtdsplit" directory with OpenWrt specific
files (including Kconfig).
This is the first step to achieve this. This patch adds a "mtdsplit"
directory with Kconfig and replaces 4 patches with a single one.

Signed-off-by: Rafał Miłecki <zajec5@…>

Location:
trunk/target/linux/generic
Files:
2 added
3 deleted
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-3.14/406-mtd-hook-mtdsplit-into-Kbuild.patch

    r42284 r42287  
    11--- a/drivers/mtd/Kconfig 
    22+++ b/drivers/mtd/Kconfig 
    3 @@ -37,6 +37,17 @@ config MTD_UIMAGE_SPLIT 
     3@@ -37,6 +37,8 @@ config MTD_UIMAGE_SPLIT 
    44        depends on MTD_SPLIT_FIRMWARE 
    55        default y 
    66  
    7 +comment "Rootfs partition parsers" 
    8 + 
    9 +config MTD_SPLIT_SQUASHFS_ROOT 
    10 +       bool "Squashfs based root partition parser" 
    11 +       select MTD_SPLIT 
    12 +       default n 
    13 +       help 
    14 +         This provides a parsing function which allows to detect the 
    15 +         offset and size of the unused portion of a rootfs partition 
    16 +         containing a squashfs. 
     7+source "drivers/mtd/mtdsplit/Kconfig" 
    178+ 
    189 config MTD_SPLIT 
     
    2112--- a/drivers/mtd/Makefile 
    2213+++ b/drivers/mtd/Makefile 
    23 @@ -7,6 +7,7 @@ obj-$(CONFIG_MTD)               += mtd.o 
     14@@ -7,6 +7,10 @@ obj-$(CONFIG_MTD)              += mtd.o 
    2415 mtd-y                          := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o 
    2516  
    2617 mtd-$(CONFIG_MTD_SPLIT)                += mtdsplit.o 
     18+mtd-$(CONFIG_MTD_SPLIT_SEAMA_FW) += mtdsplit_seama.o 
    2719+mtd-$(CONFIG_MTD_SPLIT_SQUASHFS_ROOT) += mtdsplit_squashfs.o 
     20+mtd-$(CONFIG_MTD_SPLIT_UIMAGE_FW) += mtdsplit_uimage.o 
     21+mtd-$(CONFIG_MTD_SPLIT_LZMA_FW) += mtdsplit_lzma.o 
    2822  
    2923 obj-$(CONFIG_MTD_OF_PARTS)     += ofpart.o 
Note: See TracChangeset for help on using the changeset viewer.