[stm32]小ROMbsp 默认为-O2

This commit is contained in:
Meco Man 2022-01-28 04:04:53 -05:00
parent 580194f5f0
commit 7a0f48caa9
5 changed files with 13 additions and 12 deletions

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = ''
if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g'
CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2'
else:
CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug':
CFLAGS += ' -g -O0'
CFLAGS += ' -g -O2'
AFLAGS += ' -g'
else:
CFLAGS += ' -O2'
@ -165,7 +165,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug':
CFLAGS += ' --debug'
CFLAGS += ' -On'
CFLAGS += ' -Oh'
else:
CFLAGS += ' -Oh'

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = ''
if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g'
CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2'
else:
CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug':
CFLAGS += ' -g -O0'
CFLAGS += ' -g -O2'
AFLAGS += ' -g'
else:
CFLAGS += ' -O2'
@ -164,7 +164,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug':
CFLAGS += ' --debug'
CFLAGS += ' -On'
CFLAGS += ' -Oh'
else:
CFLAGS += ' -Oh'

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = ''
if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g'
CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2'
else:
CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug':
CFLAGS += ' -g -O0'
CFLAGS += ' -g -O2'
AFLAGS += ' -g'
else:
CFLAGS += ' -O2'
@ -164,7 +164,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug':
CFLAGS += ' --debug'
CFLAGS += ' -On'
CFLAGS += ' -Oh'
else:
CFLAGS += ' -Oh'

View File

@ -11,6 +11,7 @@ menu "Onboard Peripheral Drivers"
config BSP_USING_USB_TO_USART
bool "Enable USB TO USART (uart2)"
select BSP_USING_UART
select BSP_USING_UART2
default y

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = ''
if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g'
CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2'
else:
CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug':
CFLAGS += ' -g -O0'
CFLAGS += ' -g -O2'
AFLAGS += ' -g'
else:
CFLAGS += ' -O2'
@ -164,7 +164,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug':
CFLAGS += ' --debug'
CFLAGS += ' -On'
CFLAGS += ' -Oh'
else:
CFLAGS += ' -Oh'