Files
luban-lite-t3e-pro/application/baremetal/bootloader/lib/upgboot/SConscript

27 lines
615 B
Python
Raw Normal View History

2023-08-30 16:21:18 +08:00
# RT-Thread building script for component
from building import *
Import('rtconfig')
cwd = GetCurrentDir()
src = Glob('upg_detect.c')
src += Glob('upg_detect_pin.c')
if GetDepend('AIC_RTC_DRV'):
ver = GetConfigValue('AIC_RTC_DRV_VER')
ver = ver.replace('"','')
src += Glob('upg_detect_rtc_v%s.c' % ver)
if GetDepend('AIC_WRI_DRV'):
ver = GetConfigValue('AIC_WRI_DRV_VER')
ver = ver.replace('"','')
src += Glob('upg_detect_wri_v%s.c' % ver)
CPPPATH = [cwd]
ASFLAGS = ''
group = DefineGroup('BLDRV', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
Return('group')