[DeviceDrivers][SFUD] Add LOCAL_CCFLAGS to SFUD SConscript.
This commit is contained in:
parent
2d9a592c2a
commit
8768f31fc1
|
@ -1,8 +1,10 @@
|
||||||
from building import *
|
from building import *
|
||||||
|
import rtconfig
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = ['spi_core.c', 'spi_dev.c']
|
src = ['spi_core.c', 'spi_dev.c']
|
||||||
CPPPATH = [cwd, cwd + '/../include']
|
CPPPATH = [cwd, cwd + '/../include']
|
||||||
|
LOCAL_CCFLAGS = ''
|
||||||
|
|
||||||
src_device = []
|
src_device = []
|
||||||
|
|
||||||
|
@ -32,9 +34,13 @@ if GetDepend('RT_USING_SFUD'):
|
||||||
CPPPATH += [cwd + '/sfud/inc']
|
CPPPATH += [cwd + '/sfud/inc']
|
||||||
if GetDepend('RT_SFUD_USING_SFDP'):
|
if GetDepend('RT_SFUD_USING_SFDP'):
|
||||||
src_device += ['sfud/src/sfud_sfdp.c']
|
src_device += ['sfud/src/sfud_sfdp.c']
|
||||||
|
if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
|
LOCAL_CCFLAGS += ' -std=c99'
|
||||||
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
|
LOCAL_CCFLAGS += ' --c99'
|
||||||
|
|
||||||
src += src_device
|
src += src_device
|
||||||
|
|
||||||
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SPI'], CPPPATH = CPPPATH)
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SPI'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue