2012-10-12 01:06:30 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Split("""
|
|
|
|
core/core.c
|
|
|
|
core/usbdevice.c
|
|
|
|
""")
|
|
|
|
|
2012-11-25 08:02:10 +08:00
|
|
|
if GetDepend('RT_USB_DEVICE_CDC'):
|
|
|
|
src += Glob('class/cdc_vcom.c')
|
|
|
|
|
|
|
|
if GetDepend('RT_USB_DEVICE_MSTORAGE'):
|
|
|
|
src += Glob('class/mstorage.c')
|
|
|
|
|
2012-10-12 01:06:30 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_USB_DEVICE'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|