summaryrefslogtreecommitdiff
path: root/bsp/lpc824/Libraries/SConscript
blob: 2c998eee64cd03b5f3a3c38176139f69ae8d6fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# RT-Thread building script for component

Import('rtconfig')
Import('RTT_ROOT')
from building import *

cwd = GetCurrentDir()

src  = Glob('peri_driver/*/*.c')
src += Glob('common/board/*.c')
src += Glob('common/chip/*.c')

# add for startup script 
if rtconfig.PLATFORM in ['gcc']:
    print("not gcc startup file")
    exit(0)
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
    src += [cwd + '/common/startup/keil_startup_lpc82x.s']
elif rtconfig.PLATFORM in ['iccarm']:
    src += [cwd + '/common/startup/iar_startup_lpc82x.s']

CPPPATH = [ cwd + '/peri_driver', cwd + '/common/board', 
			cwd + '/common/chip', cwd + '/common/CMSIS']
					
CPPDEFINES = ['CORE_M0PLUS']

group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)

Return('group')