rt-thread-official/bsp/stm32/libraries/HAL_Drivers/SConscript

22 lines
516 B
Python
Raw Normal View History

Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os
cwd = GetCurrentDir()
group = []
src = ['drv_common.c']
path = [cwd]
2024-05-06 08:22:20 +08:00
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')