[U-Boot-Users] [Patch] U-Boot-V2: Kconfig Cleanup patch

Menon, Nishanth x0nishan at ti.com
Mon May 12 14:20:09 CEST 2008


This is Kconfig cleanup patch (not all configurations will use CFI, SPI, RAMFS and DEVFS).
* Enable CFI and SPI drivers menuconfig option to be able to disable them in menuconfig.
* Introduce capability to disable ramfs and devfs.

Signed-off-by: Nishanth Menon <x0nishan at ti.com>

Index: u-boot-v2.git/drivers/Kconfig
===================================================================
--- u-boot-v2.git.orig/drivers/Kconfig	2008-05-08 17:36:19.000000000 -0500
+++ u-boot-v2.git/drivers/Kconfig	2008-05-08 17:39:34.000000000 -0500
@@ -29,7 +29,7 @@
 	  breaks something.
 
 config DRIVER_CFI_OLD
-	bool
+	bool "old cfi flash driver"
 	default y
 	depends on !DRIVER_CFI_NEW
 
Index: u-boot-v2.git/drivers/spi/Kconfig
===================================================================
--- u-boot-v2.git.orig/drivers/spi/Kconfig	2008-05-08 17:36:20.000000000 -0500
+++ u-boot-v2.git/drivers/spi/Kconfig	2008-05-08 17:39:34.000000000 -0500
@@ -1,14 +1,16 @@
 menu "SPI drivers                   "
 
 config SPI
-	bool
+	bool "Enable SPI driver support"
 	default y
 
 config DRIVER_SPI_IMX
 	bool "i.MX SPI Master driver"
 	depends on ARCH_IMX
+	depends on SPI
 
 config DRIVER_SPI_MC13783
 	bool "MC13783 a.k.a. PMIC driver"
+	depends on SPI
 
 endmenu
Index: u-boot-v2.git/drivers/spi/Makefile
===================================================================
--- u-boot-v2.git.orig/drivers/spi/Makefile	2008-05-08 17:36:19.000000000 -0500
+++ u-boot-v2.git/drivers/spi/Makefile	2008-05-08 17:39:34.000000000 -0500
@@ -1,4 +1,4 @@
-obj-y += spi.o
+obj-$(CONFIG_SPI) += spi.o
 obj-$(CONFIG_DRIVER_SPI_IMX) += imx_spi.o
 
 obj-$(CONFIG_DRIVER_SPI_MC13783) += mc13783.o
Index: u-boot-v2.git/fs/Kconfig
===================================================================
--- u-boot-v2.git.orig/fs/Kconfig	2008-05-08 17:36:19.000000000 -0500
+++ u-boot-v2.git/fs/Kconfig	2008-05-08 17:39:34.000000000 -0500
@@ -6,4 +6,14 @@
 	select ZLIB
 	prompt "cramfs support"
 
+config FS_RAMFS
+	bool
+	default y
+	prompt "ramfs support"
+
+config FS_DEVFS
+	bool
+	default y
+	prompt "devfs support"
+
 endmenu
Index: u-boot-v2.git/fs/Makefile
===================================================================
--- u-boot-v2.git.orig/fs/Makefile	2008-05-08 17:36:19.000000000 -0500
+++ u-boot-v2.git/fs/Makefile	2008-05-08 17:39:34.000000000 -0500
@@ -1,4 +1,4 @@
 obj-$(CONFIG_FS_CRAMFS)	+= cramfs/
+obj-$(CONFIG_FS_RAMFS)	+= ramfs.o
+obj-$(CONFIG_FS_DEVFS)	+= devfs.o
 obj-y	+= fs.o
-obj-y	+= ramfs.o
-obj-y	+= devfs.o




More information about the U-Boot mailing list