Skip to content

Commit 34166b3

Browse files
MDLZCOOLsakumisu
authored andcommitted
fix(rp2040): add rp2040 support to scons
1 parent a5f765d commit 34166b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SConscript

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ if GetDepend(['PKG_CHERRYUSB_DEVICE']):
111111
LIBS = ['libpusb2_dc_a32_softfp_neon.a']
112112
if GetDepend(['PKG_CHERRYUSB_DEVICE_NRF5X']):
113113
src += Glob('port/nrf5x/usb_dc_nrf5x.c')
114+
if GetDepend(['PKG_CHERRYUSB_DEVICE_RP2040']):
115+
path += [cwd + '/port/rp2040']
116+
src += Glob('port/rp2040/usb_dc_rp2040.c')
114117

115118
if GetDepend(['PKG_CHERRYUSB_DEVICE_CDC_ACM']):
116119
src += Glob('class/cdc/usbd_cdc_acm.c')
@@ -267,6 +270,10 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
267270
LIBPATH = [cwd + '/port/xhci/phytium']
268271
LIBS = ['libxhci_a32_softfp_neon.a']
269272

273+
if GetDepend(['PKG_CHERRYUSB_HOST_RP2040']):
274+
path += [cwd + '/port/rp2040']
275+
src += Glob('port/rp2040/usb_hc_rp2040.c')
276+
270277
if GetDepend(['PKG_CHERRYUSB_HOST_CDC_ACM']):
271278
src += Glob('class/serial/usbh_cdc_acm.c')
272279
if GetDepend(['PKG_CHERRYUSB_HOST_HID']):

0 commit comments

Comments
 (0)