summaryrefslogtreecommitdiff
path: root/bsp/allwinner/d1s/ports/fal/SConscript
blob: 468abce8436f3cdd42c59baf44d04a14563722cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

from building import *
import rtconfig

cwd     = GetCurrentDir()

src = []

src     += Glob('*.c')
if not GetDepend('BSP_USING_NORFLASH'):
    SrcRemove(src, ['fal_norflash_sfud_port.c'])

CPPPATH = [cwd]
LOCAL_CCFLAGS = ''

if rtconfig.CROSS_TOOL == 'gcc':
    LOCAL_CCFLAGS += ' -std=c99'
elif rtconfig.CROSS_TOOL == 'keil':
    LOCAL_CCFLAGS += ' --c99'

group = DefineGroup('fal', src, depend = ['RT_USING_FAL'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)

Return('group')