[linux-yocto] [PATCH 2/9] meta: Add usb-gadgets scc and cfg

Darren Hart dvhart at linux.intel.com
Sat May 18 14:47:31 PDT 2013


Add all USB gadget drivers as modules. Include the USB dependency, but
omit BLOCK, NET, and VIDEODEV. If the user wants those gadets to get
built, they will need to include those options explicitly, otherwise we
would pull in too much, and it doesn't make sense to create groups of
gadgets.

Signed-off-by: Darren Hart <dvhart at linux.intel.com>
---
 meta/cfg/kernel-cache/features/usb/usb-gadgets.cfg | 17 +++++++++++++++++
 meta/cfg/kernel-cache/features/usb/usb-gadgets.scc |  9 +++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 meta/cfg/kernel-cache/features/usb/usb-gadgets.cfg
 create mode 100644 meta/cfg/kernel-cache/features/usb/usb-gadgets.scc

diff --git a/meta/cfg/kernel-cache/features/usb/usb-gadgets.cfg b/meta/cfg/kernel-cache/features/usb/usb-gadgets.cfg
new file mode 100644
index 0000000..d208fdf
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/usb/usb-gadgets.cfg
@@ -0,0 +1,17 @@
+CONFIG_USB_GADGET=m
+CONFIG_USB_ZERO=m
+CONFIG_USB_AUDIO=m
+CONFIG_USB_ETH=m
+CONFIG_USB_G_NCM=m
+CONFIG_USB_GADGETFS=m
+CONFIG_USB_FUNCTIONFS=m
+CONFIG_USB_MASS_STORAGE=m
+CONFIG_USB_G_SERIAL=m
+CONFIG_USB_MIDI_GADGET=m
+CONFIG_USB_G_PRINTER=m
+CONFIG_USB_CDC_COMPOSITE=m
+CONFIG_USB_G_ACM_MS=m
+CONFIG_USB_G_MULTI=m
+CONFIG_USB_G_HID=m
+CONFIG_USB_G_DBGP=m
+CONFIG_USB_G_WEBCAM=m
diff --git a/meta/cfg/kernel-cache/features/usb/usb-gadgets.scc b/meta/cfg/kernel-cache/features/usb/usb-gadgets.scc
new file mode 100644
index 0000000..5611d82
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/usb/usb-gadgets.scc
@@ -0,0 +1,9 @@
+define KFEATURE_DESCRIPTION "Enable USB gadgets modules"
+define KFEATURE_COMPATIBILITY board
+
+include usb-base.scc
+
+# Some gadgets require one or more of the following:
+# NET, BLOCK, VIDEO_DEV
+
+kconf hardware usb-gadgets.cfg
-- 
1.8.1.2




More information about the linux-yocto mailing list