瀏覽代碼

Add usb gadget feature flag

SVN-Revision: 22798
Michael Büsch 15 年之前
父節點
當前提交
7a8066735d
共有 4 個文件被更改,包括 6 次插入1 次删除
  1. 1 0
      package/kernel/modules/usb.mk
  2. 1 0
      scripts/metadata.pl
  3. 3 0
      target/Config.in
  4. 1 1
      target/linux/omap24xx/Makefile

+ 1 - 0
package/kernel/modules/usb.mk

@@ -38,6 +38,7 @@ define KernelPackage/usb-gadget
   KCONFIG:=CONFIG_USB_GADGET
   FILES:=
   AUTOLOAD:=
+  DEPENDS:=@USB_GADGET_SUPPORT
   $(call AddDepends/usb)
 endef
 

+ 1 - 0
scripts/metadata.pl

@@ -158,6 +158,7 @@ sub target_config_features(@) {
 		/pci/ and $ret .= "\tselect PCI_SUPPORT\n";
 		/pcie/ and $ret .= "\tselect PCIE_SUPPORT\n";
 		/usb/ and $ret .= "\tselect USB_SUPPORT\n";
+		/usbgadget/ and $ret .= "\tselect USB_GADGET_SUPPORT\n";
 		/pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
 		/squashfs/ and $ret .= "\tselect USES_SQUASHFS\n";
 		/jffs2/ and $ret .= "\tselect USES_JFFS2\n";

+ 3 - 0
target/Config.in

@@ -34,6 +34,9 @@ config USB_SUPPORT
 	select AUDIO_SUPPORT
 	bool
 
+config USB_GADGET_SUPPORT
+	bool
+
 config BIG_ENDIAN
 	bool
 

+ 1 - 1
target/linux/omap24xx/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=arm
 BOARD:=omap24xx
 BOARDNAME:=TI OMAP-24xx
-FEATURES:=squashfs jffs2
+FEATURES:=squashfs jffs2 usb usbgadget
 
 LINUX_VERSION:=2.6.35.3