2022-03-11 09:17:46 +08:00
|
|
|
|
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = []
|
|
|
|
|
|
|
|
if GetDepend(['BSP_USING_RW007']):
|
|
|
|
src += Glob('drv_rw007.c')
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
2022-03-30 10:22:27 +08:00
|
|
|
LOCAL_CFLAGS = ''
|
2022-03-11 09:17:46 +08:00
|
|
|
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc'] or rtconfig.PLATFORM == 'armclang':
|
2022-03-30 10:22:27 +08:00
|
|
|
LOCAL_CFLAGS += ' -std=c99'
|
2022-03-11 09:17:46 +08:00
|
|
|
elif rtconfig.PLATFORM == 'armcc':
|
2022-03-30 10:22:27 +08:00
|
|
|
LOCAL_CFLAGS += ' --c99'
|
2022-03-11 09:17:46 +08:00
|
|
|
|
2022-03-30 10:22:27 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
|
2022-03-11 09:17:46 +08:00
|
|
|
|
|
|
|
Return('group')
|