From 12315741d4fae6cd694d932bb52357baf3cb6387 Mon Sep 17 00:00:00 2001 From: akscram Date: Sun, 5 Sep 2021 20:31:02 +0000 Subject: [PATCH] STM32WB: lower gdb level and enable linker optimizations git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14740 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/Makefile | 6 +++--- demos/STM32/RT-STM32WB55RG-NUCLEO68/Makefile | 6 +++--- testhal/STM32/multi/ADC/make/stm32wb55rg_nucleo68.make | 6 +++--- testhal/STM32/multi/RTC/make/stm32wb55rg_nucleo68.make | 6 +++--- testhal/STM32/multi/TRNG/make/stm32wb55rg_nucleo68.make | 6 +++--- testhal/STM32/multi/UART/make/stm32wb55rg_nucleo68.make | 6 +++--- testhal/STM32/multi/USB_CDC/make/stm32wb55cg_nucleo48.make | 6 +++--- testhal/STM32/multi/USB_CDC/make/stm32wb55rg_nucleo68.make | 6 +++--- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/Makefile b/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/Makefile index 9189c6be2..cfc6f912a 100644 --- a/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/Makefile +++ b/demos/STM32/RT-STM32WB55CG-NUCLEO48_USB/Makefile @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling. diff --git a/demos/STM32/RT-STM32WB55RG-NUCLEO68/Makefile b/demos/STM32/RT-STM32WB55RG-NUCLEO68/Makefile index fb46b57f9..0aa0f1646 100644 --- a/demos/STM32/RT-STM32WB55RG-NUCLEO68/Makefile +++ b/demos/STM32/RT-STM32WB55RG-NUCLEO68/Makefile @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling. diff --git a/testhal/STM32/multi/ADC/make/stm32wb55rg_nucleo68.make b/testhal/STM32/multi/ADC/make/stm32wb55rg_nucleo68.make index 783a6cf93..c1dae7a32 100644 --- a/testhal/STM32/multi/ADC/make/stm32wb55rg_nucleo68.make +++ b/testhal/STM32/multi/ADC/make/stm32wb55rg_nucleo68.make @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling. diff --git a/testhal/STM32/multi/RTC/make/stm32wb55rg_nucleo68.make b/testhal/STM32/multi/RTC/make/stm32wb55rg_nucleo68.make index 9828cbd61..2b4629d5e 100644 --- a/testhal/STM32/multi/RTC/make/stm32wb55rg_nucleo68.make +++ b/testhal/STM32/multi/RTC/make/stm32wb55rg_nucleo68.make @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling. diff --git a/testhal/STM32/multi/TRNG/make/stm32wb55rg_nucleo68.make b/testhal/STM32/multi/TRNG/make/stm32wb55rg_nucleo68.make index b0133e239..b95313c47 100644 --- a/testhal/STM32/multi/TRNG/make/stm32wb55rg_nucleo68.make +++ b/testhal/STM32/multi/TRNG/make/stm32wb55rg_nucleo68.make @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling. diff --git a/testhal/STM32/multi/UART/make/stm32wb55rg_nucleo68.make b/testhal/STM32/multi/UART/make/stm32wb55rg_nucleo68.make index 783a6cf93..c1dae7a32 100644 --- a/testhal/STM32/multi/UART/make/stm32wb55rg_nucleo68.make +++ b/testhal/STM32/multi/UART/make/stm32wb55rg_nucleo68.make @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling. diff --git a/testhal/STM32/multi/USB_CDC/make/stm32wb55cg_nucleo48.make b/testhal/STM32/multi/USB_CDC/make/stm32wb55cg_nucleo48.make index 208847f9e..8e88502f5 100644 --- a/testhal/STM32/multi/USB_CDC/make/stm32wb55cg_nucleo48.make +++ b/testhal/STM32/multi/USB_CDC/make/stm32wb55cg_nucleo48.make @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling. diff --git a/testhal/STM32/multi/USB_CDC/make/stm32wb55rg_nucleo68.make b/testhal/STM32/multi/USB_CDC/make/stm32wb55rg_nucleo68.make index 9828cbd61..2b4629d5e 100644 --- a/testhal/STM32/multi/USB_CDC/make/stm32wb55rg_nucleo68.make +++ b/testhal/STM32/multi/USB_CDC/make/stm32wb55rg_nucleo68.make @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb3 -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fvar-tracking -fvar-tracking-assignments endif # C specific options here (added to USE_OPT). @@ -20,7 +20,7 @@ endif # Enable this if you want the linker to remove unused code and data. ifeq ($(USE_LINK_GC),) - USE_LINK_GC = no + USE_LINK_GC = yes endif # Linker extra options here. @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO). ifeq ($(USE_LTO),) - USE_LTO = no + USE_LTO = yes endif # Enable this if you want to see the full log while compiling.