fix(rp2040): add rp2040 support to scons

This commit is contained in:
MDLZCOOL
2025-12-19 10:51:31 +08:00
committed by sakumisu
parent a5f765d46e
commit 34166b361a

View File

@@ -111,6 +111,9 @@ if GetDepend(['PKG_CHERRYUSB_DEVICE']):
LIBS = ['libpusb2_dc_a32_softfp_neon.a']
if GetDepend(['PKG_CHERRYUSB_DEVICE_NRF5X']):
src += Glob('port/nrf5x/usb_dc_nrf5x.c')
if GetDepend(['PKG_CHERRYUSB_DEVICE_RP2040']):
path += [cwd + '/port/rp2040']
src += Glob('port/rp2040/usb_dc_rp2040.c')
if GetDepend(['PKG_CHERRYUSB_DEVICE_CDC_ACM']):
src += Glob('class/cdc/usbd_cdc_acm.c')
@@ -267,6 +270,10 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
LIBPATH = [cwd + '/port/xhci/phytium']
LIBS = ['libxhci_a32_softfp_neon.a']
if GetDepend(['PKG_CHERRYUSB_HOST_RP2040']):
path += [cwd + '/port/rp2040']
src += Glob('port/rp2040/usb_hc_rp2040.c')
if GetDepend(['PKG_CHERRYUSB_HOST_CDC_ACM']):
src += Glob('class/serial/usbh_cdc_acm.c')
if GetDepend(['PKG_CHERRYUSB_HOST_HID']):