mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 05:19:23 +08:00
2955dbfcda
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2487 bbd45198-f89e-11dd-88c7-29a3b14d5316
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')
|