2009-04-28 19:53:18

by Andy Lutomirski

[permalink] [raw]
Subject: [PATCH] Fix makefile so that CONFIG_WDM and CONFIG_TMC work.

From: Andy Lutomirski <[email protected]>

If CONFIG_USB_ACM and CONFIG_USB_PRINTER are not set, then
cdc-wdm and usbtmc won't get built.

Signed-off-by: Andy Lutomirski <[email protected]>

---

I hit this on a custom kernel for an embedded system with a TMC device.

diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
index b2ceb4a..09b6783 100644
--- a/drivers/usb/Makefile
+++ b/drivers/usb/Makefile
@@ -26,6 +26,8 @@ obj-$(CONFIG_USB_WUSB) += wusbcore/

obj-$(CONFIG_USB_ACM) += class/
obj-$(CONFIG_USB_PRINTER) += class/
+obj-$(CONFIG_USB_WDM) += class/
+obj-$(CONFIG_USB_TMC) += class/

obj-$(CONFIG_USB_STORAGE) += storage/
obj-$(CONFIG_USB) += storage/