summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/Kconfig31
-rw-r--r--drivers/Makefile4
2 files changed, 33 insertions, 2 deletions
diff --git a/drivers/Kconfig b/drivers/Kconfig
new file mode 100644
index 0000000000..f414e51136
--- /dev/null
+++ b/drivers/Kconfig
@@ -0,0 +1,31 @@
+menuconfig DRIVERS
+ bool "drivers"
+
+if DRIVERS
+
+config HAS_CS8900
+ bool
+
+config HAS_AT91_ETHER
+ bool
+
+config HAS_CFI
+ bool
+
+comment "Network drivers"
+
+config DRIVER_NET_CS8900
+ bool "cs8900 ethernet driver"
+ depends on HAS_CS8900
+
+config DRIVER_NET_AT91_ETHER
+ bool "at91 ethernet driver"
+ depends on HAS_AT91_ETHER
+
+comment "Flash drivers"
+
+config DRIVER_CFI
+ bool "cfi flash driver"
+ depends on HAS_CFI
+
+endif
diff --git a/drivers/Makefile b/drivers/Makefile
index 0860612c98..84433dd667 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -6,8 +6,8 @@
#obj-y += bcm570x_autoneg.o
#obj-y += bcm570x.o
#obj-y += cfb_console.o
-obj-y += cfi_flash.o
-obj-y += cs8900.o
+obj-$(CONFIG_DRIVER_CFI) += cfi_flash.o
+obj-$(CONFIG_DRIVER_NET_CS8900) += cs8900.o
#obj-y += ct69000.o
#obj-y += dc2114x.o
#obj-y += dm9000x.o