diff options
| author | Bernard Xiong <[email protected]> | 2023-06-22 14:16:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-22 14:16:03 +0800 |
| commit | e3f068f05834d433e9748d031a02bc03266bdafd (patch) | |
| tree | 96e55c65d0d19190d9f81c09179ab5f2e2cfa0a4 /components/drivers/core/SConscript | |
| parent | d1ed0f7ddb97cda805fd56714cc3fc93cc51599b (diff) | |
[DeviceDrivers] prepare for device driver v2.0 (#7697)
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') |
