rt-thread-official/bsp/phytium/board/SConscript

26 lines
646 B
Python
Raw Normal View History

from building import *
cwd = GetCurrentDir()
src = Glob('*.S')
2023-01-09 10:14:23 +08:00
src += Glob('*.c')
if GetDepend(['TARGET_E2000']):
if GetDepend(['TARGET_E2000Q']):
2023-01-09 10:14:23 +08:00
src += Glob(cwd + '/e2000/q/parameters.c')
elif GetDepend(['TARGET_E2000D']):
2023-01-09 10:14:23 +08:00
src += Glob(cwd + '/e2000/d/parameters.c')
elif GetDepend(['TARGET_E2000S']):
2023-01-09 10:14:23 +08:00
src += Glob(cwd + '/e2000/s/parameters.c')
if GetDepend(['TARGET_F2000_4']):
2023-01-09 10:14:23 +08:00
src += Glob(cwd + '/d2000/parameters.c')
if GetDepend(['TARGET_D2000']):
2023-01-09 10:14:23 +08:00
src += Glob(cwd + '/ft2004/parameters.c')
CPPPATH = [cwd]
group = DefineGroup('Board', src, depend = [''], CPPPATH = CPPPATH)
Return('group')