From b1b770f6fb447ffc13b07f5df46bbc20906388fd Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Tue, 29 Mar 2022 22:22:27 -0400 Subject: [PATCH] [sconscript] LOCAL_CCFLAGS -> LOCAL_CFLAGS (#5741) --- .../libraries/bsp-template/board/ports/SConscript | 12 +++++------- bsp/renesas/ra6m4-cpk/board/ports/SConscript | 12 +++++------- bsp/renesas/ra6m4-iot/board/ports/SConscript | 12 +++++------- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/bsp/renesas/libraries/bsp-template/board/ports/SConscript b/bsp/renesas/libraries/bsp-template/board/ports/SConscript index 3477ad3180..41d6147b10 100644 --- a/bsp/renesas/libraries/bsp-template/board/ports/SConscript +++ b/bsp/renesas/libraries/bsp-template/board/ports/SConscript @@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']): src += Glob('drv_rw007.c') CPPPATH = [cwd] -LOCAL_CCFLAGS = '' +LOCAL_CFLAGS = '' -if rtconfig.PLATFORM == 'gcc' or 'armclang': - LOCAL_CCFLAGS += ' -std=c99' +if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang': + LOCAL_CFLAGS += ' -std=c99' elif rtconfig.PLATFORM == 'armcc': - LOCAL_CCFLAGS += ' --c99' -elif rtconfig.PLATFORM == 'armclang': - LOCAL_CCFLAGS += ' -std=c99' + LOCAL_CFLAGS += ' --c99' -group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS) +group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS) Return('group') diff --git a/bsp/renesas/ra6m4-cpk/board/ports/SConscript b/bsp/renesas/ra6m4-cpk/board/ports/SConscript index 3477ad3180..41d6147b10 100644 --- a/bsp/renesas/ra6m4-cpk/board/ports/SConscript +++ b/bsp/renesas/ra6m4-cpk/board/ports/SConscript @@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']): src += Glob('drv_rw007.c') CPPPATH = [cwd] -LOCAL_CCFLAGS = '' +LOCAL_CFLAGS = '' -if rtconfig.PLATFORM == 'gcc' or 'armclang': - LOCAL_CCFLAGS += ' -std=c99' +if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang': + LOCAL_CFLAGS += ' -std=c99' elif rtconfig.PLATFORM == 'armcc': - LOCAL_CCFLAGS += ' --c99' -elif rtconfig.PLATFORM == 'armclang': - LOCAL_CCFLAGS += ' -std=c99' + LOCAL_CFLAGS += ' --c99' -group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS) +group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS) Return('group') diff --git a/bsp/renesas/ra6m4-iot/board/ports/SConscript b/bsp/renesas/ra6m4-iot/board/ports/SConscript index 3477ad3180..41d6147b10 100644 --- a/bsp/renesas/ra6m4-iot/board/ports/SConscript +++ b/bsp/renesas/ra6m4-iot/board/ports/SConscript @@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']): src += Glob('drv_rw007.c') CPPPATH = [cwd] -LOCAL_CCFLAGS = '' +LOCAL_CFLAGS = '' -if rtconfig.PLATFORM == 'gcc' or 'armclang': - LOCAL_CCFLAGS += ' -std=c99' +if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang': + LOCAL_CFLAGS += ' -std=c99' elif rtconfig.PLATFORM == 'armcc': - LOCAL_CCFLAGS += ' --c99' -elif rtconfig.PLATFORM == 'armclang': - LOCAL_CCFLAGS += ' -std=c99' + LOCAL_CFLAGS += ' --c99' -group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS) +group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS) Return('group')