2018-11-29 17:00:22 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
2023-12-03 01:32:27 +08:00
|
|
|
import os
|
2018-11-29 17:00:22 +08:00
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2023-11-30 11:02:50 +08:00
|
|
|
group = []
|
2023-11-30 22:00:00 +08:00
|
|
|
src = ['drv_common.c']
|
2023-11-30 11:02:50 +08:00
|
|
|
path = [cwd]
|
2018-11-29 17:00:22 +08:00
|
|
|
|
2023-11-30 11:02:50 +08:00
|
|
|
if not GetDepend('PKG_CMSIS_CORE'):
|
2023-12-03 01:32:27 +08:00
|
|
|
path += [os.path.join(cwd, 'CMSIS', 'Include')]
|
2018-12-17 10:38:15 +08:00
|
|
|
|
2023-12-03 01:32:27 +08:00
|
|
|
if GetDepend(['RT_USING_NANO']):
|
|
|
|
group = group + SConscript(os.path.join(cwd, 'nano', 'SConscript'))
|
|
|
|
else:
|
|
|
|
group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
|
2018-12-17 10:38:15 +08:00
|
|
|
|
2023-12-03 01:32:27 +08:00
|
|
|
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
2018-11-29 17:00:22 +08:00
|
|
|
|
|
|
|
Return('group')
|