blob: 40411fdf005c3579fd9b42069e3a9c51558fef26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import os
import rtconfig
Import('RTT_ROOT')
from building import *
CPPDEFINES = []
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Glob('src/*.c')
# Remove retarget.c As there is a HardFaultHandler in it
for src_f in src:
if 'retarget.c' in src_f.path:
src.remove(src_f)
path = [cwd + '/inc']
group = DefineGroup('StdDriver', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group')
|