From 45d278050741db0201d6537ac04059981fc18bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 28 Mar 2021 13:26:48 +0200 Subject: [PATCH] Always generate debug symbols The debug symbols are only part of the generated ELF files, they are stripped from the .bin and .hex files. So there should be no disadvantage of always generating it. Before: 52456 Pinecil_EN.bin 81700 Pinecil_EN.elf 140759 Pinecil_EN.elf.map 147554 Pinecil_EN.hex After: 52456 Pinecil_EN.bin 650556 Pinecil_EN.elf 191974 Pinecil_EN.elf.map 147554 Pinecil_EN.hex --- source/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/Makefile b/source/Makefile index fa144361..f32adf35 100644 --- a/source/Makefile +++ b/source/Makefile @@ -132,12 +132,9 @@ OPTIM=-Os -flto -finline-small-functions -findirect-inlining -fdiagnostics-color # global defines --------------------------------------------------------------- GLOBAL_DEFINES += $(DEV_GLOBAL_DEFS) -D USE_RTOS_SYSTICK -D MODEL_$(model) -D VECT_TAB_OFFSET=$(bootldr_size)U -# Without debug code -DEBUG= +DEBUG=-g3 ifdef swd_enable GLOBAL_DEFINES += -DSWD_ENABLE - # Enable debug code generation - DEBUG=-g endif