diff options
| author | [email protected] <[email protected]> | 2012-11-25 00:02:10 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-11-25 00:02:10 +0000 |
| commit | 60c27fc4b5f96728bc39d7432b8862ce81c2e63b (patch) | |
| tree | f690310e18ff6040d70172067f441acc13f4c499 /components/drivers/usb/usbdevice/SConscript | |
| parent | 1b2d9541059f7c62eb73e3ee8f0a35923a7331ca (diff) | |
add USB composite and mass storage class features in USB device stack
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2447 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/usb/usbdevice/SConscript')
| -rw-r--r-- | components/drivers/usb/usbdevice/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/drivers/usb/usbdevice/SConscript b/components/drivers/usb/usbdevice/SConscript index 75d651f902..6cb9d0f5d9 100644 --- a/components/drivers/usb/usbdevice/SConscript +++ b/components/drivers/usb/usbdevice/SConscript @@ -5,9 +5,14 @@ cwd = GetCurrentDir() src = Split("""
core/core.c
core/usbdevice.c
-class/cdc_vcom.c
""")
+if GetDepend('RT_USB_DEVICE_CDC'):
+ src += Glob('class/cdc_vcom.c')
+
+if GetDepend('RT_USB_DEVICE_MSTORAGE'):
+ src += Glob('class/mstorage.c')
+
CPPPATH = [cwd]
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_USB_DEVICE'], CPPPATH = CPPPATH)
|
