Staging: ced1401: add driver to the build
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2012 02:43:33 +0000 (19:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2012 03:30:02 +0000 (20:30 -0700)
This adds the ced1401 driver to the build system.

Yes, there are a lot of warning messages, but it does compile, so it
should be good to get going.

Cc: Alois Schlögl <alois.schloegl@ist.ac.at>
Cc: Greg P. Smith <greg@ced.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/ced1401/Kconfig [new file with mode: 0644]
drivers/staging/ced1401/Makefile

index 08d279f8816ebfac156d12c754b48077125361f8..025d8c98424af28613d12255b120712e502bc563 100644 (file)
@@ -138,4 +138,6 @@ source "drivers/staging/ramster/Kconfig"
 
 source "drivers/staging/silicom/Kconfig"
 
+source "drivers/staging/ced1401/Kconfig"
+
 endif # STAGING
index 0f04a28c8892ba2a0a1d2eb9a48022c84174185c..08e9667a4e451a3b69798b233ebbccbefd38cd5c 100644 (file)
@@ -61,3 +61,4 @@ obj-$(CONFIG_CSR_WIFI)                += csr/
 obj-$(CONFIG_OMAP_BANDGAP)     += omap-thermal/
 obj-$(CONFIG_ZCACHE2)          += ramster/
 obj-$(CONFIG_NET_VENDOR_SILICOM)       += silicom/
+obj-$(CONFIG_CED1401)          += ced1401/
diff --git a/drivers/staging/ced1401/Kconfig b/drivers/staging/ced1401/Kconfig
new file mode 100644 (file)
index 0000000..ae36d1b
--- /dev/null
@@ -0,0 +1,6 @@
+config CED1401
+       tristate "Cambridge Electronic Design 1401 USB support"
+       depends on USB
+       help
+         This driver supports the Cambridge Electronic Design 1401 USB device
+         (whatever that is.)
index 6acb03122bd28b94ac8835a45fb46c57b49c5ca2..f0c114b2b4b90f5fc2d041563fd8c779bf183703 100644 (file)
@@ -1,12 +1,3 @@
-obj-m := cedusb.o
-cedusb-objs := usb1401.o ced_ioc.o
-KDIR := /lib/modules/$(shell uname -r)/build
-PWD := $(shell pwd)
-KBUILD_EXTRA_SYMBOLS := $(PWD)
-EXTRA_CFLAGS = -I$(HOME)/src/ced1401 
-all:
-       $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
-
-clean:
-       $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
 
+obj-$(CONFIG_CED1401)  := cedusb.o
+cedusb-objs    := usb1401.o ced_ioc.o