mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 09:19:24 +08:00
c784dd2ed8
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2306 bbd45198-f89e-11dd-88c7-29a3b14d5316
20 lines
428 B
Python
20 lines
428 B
Python
from building import *
|
|
import rtconfig
|
|
|
|
cwd = GetCurrentDir()
|
|
src_c = Glob('*.c')
|
|
|
|
# add for startup script
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
src_asm = ['start_gcc.S', 'vectors_gcc.S', 'interrupts_gcc.S']
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
src_asm = ['cstartup.asm']
|
|
|
|
src = File(src_c + src_asm)
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|