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