diff --git a/build.mk b/build.mk index 7ef061a..631e2fb 100644 --- a/build.mk +++ b/build.mk @@ -148,9 +148,11 @@ ifeq ($(GEN_LST), yes) $(OBJDUMP) -xds -S -l $(OUTDIR)/$(TARGET_VER).elf > $(OUTDIR)/$(TARGET_VER).lst endif +ifeq ($(NO_STRIP), yes) ifeq ($(RELEASE), yes) $(STRIP) --strip-debug --strip-unneeded $(OUTDIR)/$(TARGET_VER).elf endif +endif ifeq ($(GEN_SIZE), yes) @$(SIZE) -A -d $(OUTDIR)/$(TARGET_VER).elf endif diff --git a/config_cortex_m0.mk b/config_cortex_m0.mk index 05e2997..aff1dd7 100644 --- a/config_cortex_m0.mk +++ b/config_cortex_m0.mk @@ -21,6 +21,10 @@ PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections +GEN_SYM = yes +GEN_LST = yes +GEN_SIZE = yes +NO_STRIP = yes include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/build.mk diff --git a/config_cortex_m3.mk b/config_cortex_m3.mk index 45bbd84..47f221f 100644 --- a/config_cortex_m3.mk +++ b/config_cortex_m3.mk @@ -21,6 +21,10 @@ PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections +GEN_SYM = yes +GEN_LST = yes +GEN_SIZE = yes +NO_STRIP = yes include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/build.mk diff --git a/config_cortex_m4.mk b/config_cortex_m4.mk index 76ac1ff..909424f 100644 --- a/config_cortex_m4.mk +++ b/config_cortex_m4.mk @@ -20,6 +20,10 @@ PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections +GEN_SYM = yes +GEN_LST = yes +GEN_SIZE = yes +NO_STRIP = yes include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/build.mk diff --git a/config_cortex_m4f.mk b/config_cortex_m4f.mk index c100639..9c3866b 100644 --- a/config_cortex_m4f.mk +++ b/config_cortex_m4f.mk @@ -21,6 +21,10 @@ PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections +GEN_SYM = yes +GEN_LST = yes +GEN_SIZE = yes +NO_STRIP = yes include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/build.mk diff --git a/config_cortex_m7.mk b/config_cortex_m7.mk index 4da7c92..260265b 100644 --- a/config_cortex_m7.mk +++ b/config_cortex_m7.mk @@ -21,6 +21,10 @@ PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections +GEN_SYM = yes +GEN_LST = yes +GEN_SIZE = yes +NO_STRIP = yes include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/build.mk