summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-04-23 16:20:50 +0800
committersakumisu <[email protected]>2022-04-23 16:20:50 +0800
commit06a6049e1862933b8d52038e1fa1315108652562 (patch)
tree096975e226d215c7e2bd333e553a01cbc437c224 /SConscript
parent73333f95ba43b4d85bad78976210f42a8609410c (diff)
fix host depend
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/SConscript b/SConscript
index d5599782..e09823b3 100644
--- a/SConscript
+++ b/SConscript
@@ -66,12 +66,13 @@ if GetDepend(['PKG_CHERRYUSB_DEVICE']):
CPPDEFINES += ['CONFIG_USB_MUSB_SUNXI']
# USB HOST
-if GetDepend(['PKG_CHERRYUSB_USING_HOST']):
- src += Glob('core/usbh_core.c')
+if GetDepend(['PKG_CHERRYUSB_HOST']):
path += [cwd + '/osal']
+ path += [cwd + '/class/hub']
+ src += Glob('core/usbh_core.c')
src += Glob('osal/usb_osal_rtthread.c')
src += Glob('osal/usb_workq.c')
-
+
if GetDepend(['PKG_CHERRYUSB_HOST_CDC']):
path += [cwd + '/class/cdc']
src += Glob('class/cdc/usbh_cdc_acm.c')
@@ -82,7 +83,6 @@ if GetDepend(['PKG_CHERRYUSB_USING_HOST']):
path += [cwd + '/class/msc']
src += Glob('class/msc/usbh_msc.c')
if GetDepend(['PKG_CHERRYUSB_HOST_HUB']):
- path += [cwd + '/class/hub']
src += Glob('class/hub/usbh_hub.c')
CPPDEFINES += ['CONFIG_USBHOST_HUB']