summaryrefslogtreecommitdiff
path: root/bsp/phytium/board/SConscript
blob: 0cf8e8472177258d3e847abeaa7bed6bed5de6ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from building import *

cwd = GetCurrentDir()
src = Glob('*.S')
src += Glob('*.c')

if GetDepend(['TARGET_E2000']):
    if GetDepend(['TARGET_E2000Q']):
        src += Glob(cwd + '/e2000/q/parameters.c')
    elif GetDepend(['TARGET_E2000D']):
        src += Glob(cwd + '/e2000/d/parameters.c')
    elif GetDepend(['TARGET_E2000S']):
        src += Glob(cwd + '/e2000/s/parameters.c')

if GetDepend(['TARGET_F2000_4']):
    src += Glob(cwd + '/d2000/parameters.c')

if GetDepend(['TARGET_D2000']):
    src += Glob(cwd + '/ft2004/parameters.c')

CPPPATH = [cwd]

group = DefineGroup('Board', src, depend = [''], CPPPATH = CPPPATH)

Return('group')