rt-thread/bsp/rockchip/common/HalSConscript
Steven-LiuSF 8b60b58b51
[bsp][rockchip][rk2108]: add rk2108 base support. (#6040)
* [bsp][rockchip][rk2108]: add rk2108 base support.

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
2022-06-09 14:27:30 +08:00

25 lines
671 B
Plaintext

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')