You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
671 B
24 lines
671 B
import rtconfig
|
|
Import('RTT_ROOT')
|
|
Import('SOC')
|
|
from building import *
|
|
|
|
# get current directory
|
|
cwd = GetCurrentDir()
|
|
hal_lib = cwd + '/rk_hal/lib'
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
src = Glob(hal_lib + '/CMSIS/Device/' + SOC + '/Source/*.c')
|
|
src += Glob(hal_lib + '/hal/src/*.c')
|
|
src += Glob(hal_lib + '/hal/src/*/*.c')
|
|
src += Glob(hal_lib + '/bsp/' + SOC + '/*.c')
|
|
|
|
#add include path
|
|
path = [hal_lib + '/hal/inc',
|
|
hal_lib + '/bsp/' + SOC,
|
|
hal_lib + '/CMSIS/Device/' + SOC + '/Include',
|
|
hal_lib + '/CMSIS/Core/Include']
|
|
|
|
group = DefineGroup(SOC + '_StdPeriph', src, depend = [''], CPPPATH = path)
|
|
|
|
Return('group')
|
|
|