summaryrefslogtreecommitdiff
path: root/bsp/renesas/ra6m3-hmi-board/ra/SConscript
blob: bedb81c847c21d01ff7935dd144f05584e07ef37 (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
30
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',
                cwd + '/tes/dave2d/inc']

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

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