瀏覽代碼

include/target.mk: Only set usb feature flag for a target if there is a HCD

SVN-Revision: 20425
Lars-Peter Clausen 15 年之前
父節點
當前提交
2bc9d6f6e9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      include/target.mk

+ 3 - 1
include/target.mk

@@ -148,7 +148,9 @@ ifeq ($(DUMP),1)
       FEATURES += pcie
     endif
     ifneq ($(CONFIG_USB)$(CONFIG_USB_SUPPORT),)
-      FEATURES += usb
+      ifneq ($(CONFIG_USB_ARCH_HAS_HCD)$(CONFIG_USB_EHCI_HCD),)
+        FEATURES += usb
+      endif
     endif
     ifneq ($(CONFIG_PCMCIA)$(CONFIG_PCCARD),)
       FEATURES += pcmcia