2022-11-10 22:22:48 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.S')
|
2023-05-11 10:25:21 +08:00
|
|
|
src += Glob('*.c')
|
2023-08-29 10:27:54 +08:00
|
|
|
|
|
|
|
if GetDepend(['TARGET_E2000Q']):
|
|
|
|
src += Glob(cwd + '/e2000/memory_map.c')
|
|
|
|
src += Glob(cwd + '/e2000/q/parameters.c')
|
|
|
|
elif GetDepend(['TARGET_E2000D']):
|
2023-05-11 10:25:21 +08:00
|
|
|
src += Glob(cwd + '/e2000/memory_map.c')
|
2023-08-29 10:27:54 +08:00
|
|
|
src += Glob(cwd + '/e2000/d/parameters.c')
|
|
|
|
elif GetDepend(['TARGET_E2000S']):
|
|
|
|
src += Glob(cwd + '/e2000/memory_map.c')
|
|
|
|
src += Glob(cwd + '/e2000/s/parameters.c')
|
2022-11-10 22:22:48 +08:00
|
|
|
|
|
|
|
if GetDepend(['TARGET_F2000_4']):
|
2023-05-11 10:25:21 +08:00
|
|
|
src += Glob(cwd + '/ft2004/memory_map.c')
|
2023-08-29 10:27:54 +08:00
|
|
|
src += Glob(cwd + '/ft2004/parameters.c')
|
2022-11-10 22:22:48 +08:00
|
|
|
|
|
|
|
if GetDepend(['TARGET_D2000']):
|
2023-05-11 10:25:21 +08:00
|
|
|
src += Glob(cwd + '/d2000/memory_map.c')
|
2023-08-29 10:27:54 +08:00
|
|
|
src += Glob(cwd + '/d2000/parameters.c')
|
|
|
|
|
|
|
|
if GetDepend(['TARGET_PHYTIUMPI']):
|
|
|
|
src += Glob(cwd + '/phytium-pi/memory_map.c')
|
|
|
|
src += Glob(cwd + '/phytium-pi/parameters.c')
|
2022-11-10 22:22:48 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Board', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|