summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/SConscript b/SConscript
index b96c8c94..234c80ce 100644
--- a/SConscript
+++ b/SConscript
@@ -62,14 +62,12 @@ if GetDepend(['PKG_CHERRYUSB_DEVICE']):
if GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2']):
src += Glob('port/dwc2/usb_dc_dwc2.c')
+ if GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2_STM32']):
+ src += Glob('port/dwc2/usb_glue_st.c')
if GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2_PORT_FS']):
CPPDEFINES += ['CONFIG_USB_DWC2_PORT=FS_PORT']
elif GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2_PORT_HS']):
CPPDEFINES += ['CONFIG_USB_DWC2_PORT=HS_PORT']
- if GetDepend(['SOC_SERIES_STM32F7']):
- CPPDEFINES += ['STM32F7']
- elif GetDepend(['SOC_SERIES_STM32H7']):
- CPPDEFINES += ['STM32H7']
if GetDepend(['PKG_CHERRYUSB_DEVICE_MUSB']):
src += Glob('port/musb/usb_dc_musb.c')
@@ -112,6 +110,8 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
if GetDepend(['PKG_CHERRYUSB_HOST_DWC2']):
src += Glob('port/dwc2/usb_hc_dwc2.c')
+ if GetDepend(['PKG_CHERRYUSB_HOST_DWC2_STM32']):
+ src += Glob('port/dwc2/usb_glue_st.c')
if GetDepend(['PKG_CHERRYUSB_HOST_MUSB']):
src += Glob('port/musb/usb_hc_musb.c')