From 802a2a03f35a4424ce6fb8ce8f9513211f1ec10c Mon Sep 17 00:00:00 2001 From: Wayne Lin Date: Mon, 8 Mar 2021 23:25:38 +0800 Subject: [PATCH] Keep --c99 flag and append MDK5 building notification. --- bsp/nuvoton/numaker-m2354/README.md | 4 +++- components/drivers/spi/SConscript | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bsp/nuvoton/numaker-m2354/README.md b/bsp/nuvoton/numaker-m2354/README.md index dc087f9ee0..5cc0d34fb8 100644 --- a/bsp/nuvoton/numaker-m2354/README.md +++ b/bsp/nuvoton/numaker-m2354/README.md @@ -39,7 +39,9 @@ Support GCC, MDK5, IAR IDE/compilers. More information of these compiler version | IAR | 8.32 | | GCC | GCC 6.3.1 20170620 (Need update env) | -Notice: Please install Nu-Link_Keil_Driver or Nu-Link_IAR_Driver for development. +Notice: +(1) Please install Nu-Link_Keil_Driver or Nu-Link_IAR_Driver for development. +(2) You must remove '--c99' flag in /components/drivers/spi/SConscript before generating MDK5 project file. ## 3. Program firmware ### Step 1: diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index c5d845891e..e19f30861f 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -28,7 +28,7 @@ if GetDepend('RT_USING_SFUD'): if rtconfig.CROSS_TOOL == 'gcc': LOCAL_CCFLAGS += ' -std=c99' elif rtconfig.CROSS_TOOL == 'keil': - LOCAL_CCFLAGS += ' ' + LOCAL_CCFLAGS += ' --c99' src += src_device