mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-16 11:28:54 +00:00
27 lines
615 B
Python
27 lines
615 B
Python
|
|
# 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')
|