diff options
| author | sakumisu <[email protected]> | 2022-05-22 18:27:21 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-05-22 18:27:21 +0800 |
| commit | cce4a2ff6122919b73f235ff30b002a1da4a3a12 (patch) | |
| tree | 62a84d98b21ef00c6e2c5458de177bd2cd63a720 /SConscript | |
| parent | e09fc418d053e5c064cc6034c896710f30741eec (diff) | |
add rndis host into building
Diffstat (limited to 'SConscript')
| -rw-r--r-- | SConscript | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -5,7 +5,7 @@ path = [cwd + '/common'] path += [cwd + '/core'] src = [] -CPPDEFINES = [] +CPPDEFINES = ['-Dprintf=rt_kprintf'] # USB DEVICE if GetDepend(['PKG_CHERRYUSB_DEVICE']): @@ -71,7 +71,7 @@ if GetDepend(['PKG_CHERRYUSB_HOST']): 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') @@ -81,6 +81,9 @@ if GetDepend(['PKG_CHERRYUSB_HOST']): if GetDepend(['PKG_CHERRYUSB_HOST_MSC']): path += [cwd + '/class/msc'] src += Glob('class/msc/usbh_msc.c') + 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'] |
