diff options
Diffstat (limited to 'components/drivers/core/SConscript')
| -rw-r--r-- | components/drivers/core/SConscript | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/components/drivers/core/SConscript b/components/drivers/core/SConscript new file mode 100644 index 0000000000..4aac2b7166 --- /dev/null +++ b/components/drivers/core/SConscript @@ -0,0 +1,15 @@ +from building import * + +cwd = GetCurrentDir() +src = ['device.c'] +CPPPATH = [cwd + '/../include'] + +if GetDepend(['RT_USING_DEV_BUS']): + src = src + ['bus.c'] + +if GetDepend(['RT_USING_DM']): + src = src + ['driver.c'] + +group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH) + +Return('group') |
