add newlib compiler depend

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1742 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2011-10-08 13:02:22 +00:00
parent 0d2624313a
commit 73a117039f
4 changed files with 644 additions and 635 deletions

View File

@ -1,8 +1,17 @@
Import('RTT_ROOT') Import('rtconfig')
from building import * from building import *
if rtconfig.CROSS_TOOL != 'gcc':
print '================ERROR============================'
print 'Please use GNU GCC compiler if using newlib'
print '================================================='
exit(0)
cwd = GetCurrentDir()
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [RTT_ROOT + '/components/libc/newlib'] CPPPATH = [cwd]
group = DefineGroup('newlib', src, depend = ['RT_USING_NEWLIB'], CPPPATH = CPPPATH) group = DefineGroup('newlib', src, depend = ['RT_USING_NEWLIB'], CPPPATH = CPPPATH)
Return('group') Return('group')