rt-thread/bsp/rockchip/common/HalSConscript

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