summaryrefslogtreecommitdiff
path: root/bsp/renesas/ra8d1-ek/ra/SConscript
blob: 4906101529e493e9379a666aa1f20ed4b7df2e9b (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
26
27
28
29
Import('RTT_ROOT')
Import('rtconfig')
from building import *
from gcc import *

cwd = GetCurrentDir()
src = []
group = []
CPPPATH = []

if rtconfig.PLATFORM in ['iccarm']:
    print("\nThe current project does not support IAR build\n")
    Return('group')
elif rtconfig.PLATFORM in GetGCCLikePLATFORM():
    src += Glob(cwd + '/fsp/src/bsp/mcu/all/*.c')
    src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c']
    src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
    src += Glob(cwd + '/fsp/src/r_*/*.c')
    CPPPATH = [ cwd + '/arm/CMSIS_5/CMSIS/Core/Include',
                cwd + '/fsp/inc',
                cwd + '/fsp/inc/api',
                cwd + '/fsp/inc/instances',]

if GetDepend('BSP_USING_G2D'):
    src += Glob(cwd + '/tes/dave2d/src/*.c')
    CPPPATH += [cwd + '/tes/dave2d/inc']

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