summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries/HAL_Drivers/SConscript
blob: 11ee4b1b92376e61d005081ff640250b575aa6a2 (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(cwd, 'nano', 'SConscript'))
else:
    group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))

group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)

Return('group')