Commit f6434a95 authored by Miquel Raynal's avatar Miquel Raynal Committed by Tom Rini

mtd: ensure MTD is compiled when CMD_MTDPARTS is selected

MTD support must be enabled when using mtdparts. Indeed, functions
like get_mtd_info(), get_mtd_device() and put_mtd_device() are in
drivers/mtd/mtd_uboot.c and are built only with CONFIG_MTD.
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent 2fa872ee
......@@ -54,3 +54,4 @@ CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_FDT_FIXUP_PARTITIONS=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -53,3 +53,4 @@ CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_FDT_FIXUP_PARTITIONS=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -62,3 +62,4 @@ CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_FDT_FIXUP_PARTITIONS=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -62,3 +62,4 @@ CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_FDT_FIXUP_PARTITIONS=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -32,3 +32,4 @@ CONFIG_USB_MUSB_GADGET=y
CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
CONFIG_USB_FUNCTION_MASS_STORAGE=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -167,3 +167,4 @@ CONFIG_TSEC_ENET=y
CONFIG_SYS_NS16550=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -166,3 +166,4 @@ CONFIG_TSEC_ENET=y
CONFIG_SYS_NS16550=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -28,3 +28,4 @@ CONFIG_USB_MUSB_GADGET=y
CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
CONFIG_USB_FUNCTION_MASS_STORAGE=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -69,3 +69,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -68,3 +68,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -69,3 +69,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -68,3 +68,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -77,3 +77,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_DM_MMC=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -74,3 +74,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -73,3 +73,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -70,3 +70,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -69,3 +69,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -79,3 +79,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_DM_MMC=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -78,3 +78,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_DM_MMC=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -72,3 +72,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -77,3 +77,4 @@ CONFIG_USB_STORAGE=y
CONFIG_VIDEO=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -80,3 +80,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_DM_MMC=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -71,3 +71,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -72,3 +72,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -80,3 +80,4 @@ CONFIG_VIDEO=y
CONFIG_CFB_CONSOLE_ANSI=y
CONFIG_DM_MMC=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -81,3 +81,4 @@ CONFIG_SPL_RSA=y
CONFIG_RSA_SOFTWARE_EXP=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -76,3 +76,4 @@ CONFIG_VIDEO=y
CONFIG_CFB_CONSOLE_ANSI=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -81,3 +81,4 @@ CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_STORAGE=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -78,3 +78,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_DM_MMC=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -70,3 +70,4 @@ CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -80,3 +80,4 @@ CONFIG_RSA=y
CONFIG_LZO=y
# CONFIG_OF_LIBFDT_OVERLAY is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -71,3 +71,4 @@ CONFIG_SPL_TINY_MEMSET=y
CONFIG_RSA=y
CONFIG_LZO=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -73,3 +73,4 @@ CONFIG_SPL_TINY_MEMSET=y
CONFIG_RSA=y
CONFIG_LZO=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -75,3 +75,4 @@ CONFIG_FAT_WRITE=y
CONFIG_FDT_FIXUP_PARTITIONS=y
# CONFIG_GENERATE_SMBIOS_TABLE is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -81,3 +81,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xbd00
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_ETHER=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -62,3 +62,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0403
CONFIG_USB_GADGET_PRODUCT_NUM=0xbd00
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -74,3 +74,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0403
CONFIG_USB_GADGET_PRODUCT_NUM=0xbd00
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -72,3 +72,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0403
CONFIG_USB_GADGET_PRODUCT_NUM=0xbd00
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -49,3 +49,4 @@ CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_ATH79_SPI=y
CONFIG_LZMA=y
CONFIG_MTD=y
......@@ -70,3 +70,4 @@ CONFIG_VIDEO=y
CONFIG_IMX_WATCHDOG=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -68,3 +68,4 @@ CONFIG_VIDEO=y
CONFIG_IMX_WATCHDOG=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -69,3 +69,4 @@ CONFIG_VIDEO=y
CONFIG_IMX_WATCHDOG=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -61,3 +61,4 @@ CONFIG_DM_USB=y
CONFIG_USB_STORAGE=y
CONFIG_LCD=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -63,3 +63,4 @@ CONFIG_DM_USB=y
CONFIG_USB_STORAGE=y
CONFIG_LCD=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -75,3 +75,4 @@ CONFIG_WDT_AT91=y
CONFIG_HEXDUMP=y
# CONFIG_EFI_LOADER is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -99,3 +99,4 @@ CONFIG_LZO=y
# CONFIG_OF_LIBFDT_OVERLAY is not set
# CONFIG_EFI_LOADER is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -38,3 +38,4 @@ CONFIG_OMAP3_SPI=y
CONFIG_FAT_WRITE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -59,3 +59,4 @@ CONFIG_USB_MUSB_TI=y
CONFIG_FAT_WRITE=y
CONFIG_LZO=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -91,3 +91,4 @@ CONFIG_VIDEO_IPUV3=y
CONFIG_VIDEO=y
CONFIG_FDT_FIXUP_PARTITIONS=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -54,3 +54,4 @@ CONFIG_DRIVER_TI_CPSW=y
CONFIG_FAT_WRITE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -63,3 +63,4 @@ CONFIG_VIDEO_OMAP3=y
CONFIG_LCD=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -80,3 +80,4 @@ CONFIG_USB_XHCI_DWC3=y
CONFIG_OMAP_USB_PHY=y
CONFIG_FAT_WRITE=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -65,3 +65,4 @@ CONFIG_USB_GADGET_ATMEL_USBA=y
CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_EFI_LOADER is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -80,3 +80,4 @@ CONFIG_USB_MUSB_HOST=y
CONFIG_USB_MUSB_DA8XX=y
CONFIG_USB_MUSB_PIO_ONLY=y
CONFIG_USB_STORAGE=y
CONFIG_MTD=y
......@@ -59,3 +59,4 @@ CONFIG_USB_EHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_LZMA=y
CONFIG_LZO=y
CONFIG_MTD=y
......@@ -35,3 +35,4 @@ CONFIG_SPL_NAND_SIMPLE=y
CONFIG_CONS_INDEX=3
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -88,3 +88,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x02d2
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_ETHER=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -89,3 +89,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x02d2
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_ETHER=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -47,3 +47,4 @@ CONFIG_OF_LIBFDT=y
CONFIG_FDT_FIXUP_PARTITIONS=y
# CONFIG_EFI_LOADER is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -65,3 +65,4 @@ CONFIG_OMAP3_SPI=y
CONFIG_BCH=y
CONFIG_FDT_FIXUP_PARTITIONS=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -64,6 +64,7 @@ CONFIG_TPL_CLK=y
CONFIG_ROCKCHIP_GPIO=y
CONFIG_MMC_DW=y
CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MTD=y
CONFIG_SPI_FLASH_MACRONIX=y
CONFIG_SPI_FLASH_WINBOND=y
CONFIG_PHY_MICREL=y
......
......@@ -71,3 +71,4 @@ CONFIG_SYS_NS16550=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_LZMA=y
CONFIG_MTD=y
......@@ -75,3 +75,4 @@ CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_MSCC_BB_SPI=y
CONFIG_LZMA=y
CONFIG_MTD=y
......@@ -67,3 +67,4 @@ CONFIG_SYS_NS16550=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_LZMA=y
CONFIG_MTD=y
......@@ -64,3 +64,4 @@ CONFIG_SYS_NS16550=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_LZMA=y
CONFIG_MTD=y
......@@ -50,3 +50,4 @@ CONFIG_USB_EHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -39,3 +39,4 @@ CONFIG_USB_GADGET=y
CONFIG_FAT_WRITE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -63,3 +63,4 @@ CONFIG_USB_GADGET=y
CONFIG_FAT_WRITE=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -94,3 +94,4 @@ CONFIG_VIDEO=y
CONFIG_SYS_CONSOLE_BG_COL=0xff
CONFIG_SYS_CONSOLE_FG_COL=0x00
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -89,3 +89,4 @@ CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_ETHER=y
CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00"
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -94,3 +94,4 @@ CONFIG_VIDEO=y
CONFIG_SYS_CONSOLE_BG_COL=0xff
CONFIG_SYS_CONSOLE_FG_COL=0x00
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -116,6 +116,7 @@ CONFIG_PWRSEQ=y
CONFIG_SPL_PWRSEQ=y
CONFIG_I2C_EEPROM=y
CONFIG_MMC_SANDBOX=y
CONFIG_MTD=y
CONFIG_SPI_FLASH_SANDBOX=y
CONFIG_SPI_FLASH_ATMEL=y
CONFIG_SPI_FLASH_EON=y
......
......@@ -136,6 +136,7 @@ CONFIG_PWRSEQ=y
CONFIG_SPL_PWRSEQ=y
CONFIG_I2C_EEPROM=y
CONFIG_MMC_SANDBOX=y
CONFIG_MTD=y
CONFIG_SPI_FLASH_SANDBOX=y
CONFIG_SPI_FLASH_ATMEL=y
CONFIG_SPI_FLASH_EON=y
......
......@@ -69,3 +69,4 @@ CONFIG_WDT_AT91=y
CONFIG_SPL_TINY_MEMSET=y
# CONFIG_EFI_LOADER is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -62,3 +62,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set
CONFIG_MTD=y
......@@ -92,3 +92,4 @@ CONFIG_WDT_AT91=y
CONFIG_HEXDUMP=y
# CONFIG_EFI_LOADER is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -88,3 +88,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x02d2
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_ETHER=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -58,3 +58,4 @@ CONFIG_SPI=y
CONFIG_OMAP3_SPI=y
# CONFIG_USE_PRIVATE_LIBGCC is not set
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -39,3 +39,4 @@ CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER=y
CONFIG_LZMA=y
CONFIG_OF_LIBFDT=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -49,3 +49,4 @@ CONFIG_MII=y
CONFIG_SPI=y
CONFIG_MXC_SPI=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
......@@ -61,3 +61,4 @@ CONFIG_MII=y
CONFIG_SPI=y
CONFIG_MXC_SPI=y
CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment