diff options
| author | MDLZCOOL <[email protected]> | 2025-12-19 10:51:31 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-12-19 11:07:27 +0800 |
| commit | 34166b361a953119f1084432f302c5b31ddb9a23 (patch) | |
| tree | 3e8a7abe9c4156337f7dae3de25dd05475e1fac9 /SConscript | |
| parent | a5f765d46ece9a1d79fdb6aa7f8ee99a124876b4 (diff) | |
fix(rp2040): add rp2040 support to scons
Diffstat (limited to 'SConscript')
| -rw-r--r-- | SConscript | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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']): |
