mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 07:49:30 +08:00
17 lines
303 B
Python
17 lines
303 B
Python
|
Import('RTT_ROOT')
|
||
|
Import('rtconfig')
|
||
|
from building import *
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
src = Glob('*.c')
|
||
|
|
||
|
# remove no need file.
|
||
|
if GetDepend('RT_USING_SERIAL') == False:
|
||
|
SrcRemove(src, 'usart.c')
|
||
|
|
||
|
CPPPATH = [cwd]
|
||
|
|
||
|
group = DefineGroup('drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|