summaryrefslogtreecommitdiff
path: root/components/libc/armlibc/SConscript
blob: 11aba6b4f85bbc3aa02caf7dcad6e00e89f20ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Import('rtconfig')
from building import *

if GetDepend('RT_USING_ARM_LIBC') and rtconfig.CROSS_TOOL != 'keil':
    print '================ERROR=============================='
    print 'Please use ARM CC compiler if using ARM C library'
    print '==================================================='
    exit(0)

cwd = GetCurrentDir()
src	= Glob('*.c')
CPPPATH = [cwd]

group = DefineGroup('libc', src, depend = ['RT_USING_ARM_LIBC'], CPPPATH = CPPPATH)

Return('group')