Skip to content

Commit 8cd254b

Browse files
committed
[DeviceDriver] Remove dataqueue.c/pipe.c comnpile if the heap is not enable.
1 parent 1c7f33c commit 8cd254b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/drivers/src/SConscript

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ from building import *
33
cwd = GetCurrentDir()
44
src = Glob('*.c')
55
CPPPATH = [cwd + '/../include']
6+
7+
if not GetDepend('RT_USING_HEAP'):
8+
SrcRemove(src, 'dataqueue.c')
9+
SrcRemove(src, 'pipe.c')
10+
611
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE_IPC'], CPPPATH = CPPPATH)
712

813
Return('group')

0 commit comments

Comments
 (0)