diff options
| author | Bernard Xiong <[email protected]> | 2015-05-05 10:17:08 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-05-05 10:17:08 +0800 |
| commit | 8cd254b08f55938a9730646eb72bd46e5520773a (patch) | |
| tree | 5980e7ed3a1e42d4ab88d13a6671293cae395f7c /components | |
| parent | 1c7f33c1510ea8c9f38dadb8bcf9a4b0af0f441e (diff) | |
[DeviceDriver] Remove dataqueue.c/pipe.c comnpile if the heap is not enable.
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/src/SConscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/drivers/src/SConscript b/components/drivers/src/SConscript index a9bb775427..9f921ec509 100644 --- a/components/drivers/src/SConscript +++ b/components/drivers/src/SConscript @@ -3,6 +3,11 @@ from building import * cwd = GetCurrentDir() src = Glob('*.c') CPPPATH = [cwd + '/../include'] + +if not GetDepend('RT_USING_HEAP'): + SrcRemove(src, 'dataqueue.c') + SrcRemove(src, 'pipe.c') + group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE_IPC'], CPPPATH = CPPPATH) Return('group') |
