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-08-15 22:32:27 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc', 'armclang']:
|
2022-03-30 10:22:27 +08:00
|
|
|
LOCAL_CFLAGS += ' -std=c99'
|
2022-08-15 22:32:27 +08:00
|
|
|
elif rtconfig.PLATFORM in ['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')
|