summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-09-09 19:24:41 +0800
committersakumisu <[email protected]>2022-09-09 19:24:41 +0800
commit3ae75d2cab67dc0bab82a553ad0df4d79797473f (patch)
treeafd2f093a75c26124f9ca06e6314bb38b305aa24 /SConscript
parentfef2d2e9f9f04d37879d0c18a66b3ec393c78101 (diff)
update sconscript
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript5
1 files changed, 1 insertions, 4 deletions
diff --git a/SConscript b/SConscript
index f27a4ad0..e1034c53 100644
--- a/SConscript
+++ b/SConscript
@@ -80,6 +80,7 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
path += [cwd + '/osal']
path += [cwd + '/class/hub']
src += Glob('core/usbh_core.c')
+ src += Glob('class/hub/usbh_hub.c')
src += Glob('osal/usb_osal_rtthread.c')
if GetDepend(['PKG_CHERRYUSB_HOST_CDC']):
@@ -94,10 +95,6 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
if GetDepend(['PKG_CHERRYUSB_HOST_RNDIS']):
src += Glob('class/wireless/usbh_rndis.c')
- if GetDepend(['PKG_CHERRYUSB_HOST_HUB']):
- src += Glob('class/hub/usbh_hub.c')
- CPPDEFINES += ['CONFIG_USBHOST_HUB']
-
if GetDepend(['PKG_CHERRYUSB_HOST_DWC2']):
src += Glob('port/dwc2/usb_hc_dwc2.c')