blob: b5161ac41e7564c2a6109df5a97786749b491ecd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os
cwd = GetCurrentDir()
group = []
src = ['drv_common.c']
path = [cwd]
if not GetDepend('PKG_USING_CMSIS_CORE'):
path += [os.path.join(cwd, 'CMSIS', 'Include')]
if GetDepend(['RT_USING_NANO']):
group = group + SConscript(os.path.join('nano', 'SConscript'))
else:
group = group + SConscript(os.path.join('drivers', 'SConscript'))
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')
|