2022-07-07 17:12:56 +08:00
|
|
|
|
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = []
|
|
|
|
|
|
|
|
if GetDepend(['BSP_USING_RW007']):
|
|
|
|
src += Glob('drv_rw007.c')
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
LOCAL_CCFLAGS = ''
|
|
|
|
|
2022-08-15 22:32:27 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2022-07-07 17:12:56 +08:00
|
|
|
LOCAL_CCFLAGS += ' -std=c99'
|
2022-08-15 22:32:27 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armcc']:
|
2022-07-07 17:12:56 +08:00
|
|
|
LOCAL_CCFLAGS += ' --c99'
|
2022-08-15 22:32:27 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armclang']:
|
2022-07-07 17:12:56 +08:00
|
|
|
LOCAL_CCFLAGS += ' -std=c99'
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
|
|
|
|
|
|
|
|
Return('group')
|