From 8023347c8e535fd283a83da96bcff18ee69d14e0 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 24 Aug 2019 08:52:24 +0200 Subject: [PATCH] Makefile: add debug info --- targets/stm32l432/build/application.mk | 1 + targets/stm32l432/build/bootloader.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/targets/stm32l432/build/application.mk b/targets/stm32l432/build/application.mk index d2acd99..6e5e445 100644 --- a/targets/stm32l432/build/application.mk +++ b/targets/stm32l432/build/application.mk @@ -70,6 +70,7 @@ all: $(TARGET).elf %.elf: $(OBJ) $(CC) $^ $(HW) $(LDFLAGS) -o $@ + @echo "Built version: $(VERSION_FLAGS)" %.hex: %.elf $(SZ) $^ diff --git a/targets/stm32l432/build/bootloader.mk b/targets/stm32l432/build/bootloader.mk index 473360b..cc61913 100644 --- a/targets/stm32l432/build/bootloader.mk +++ b/targets/stm32l432/build/bootloader.mk @@ -66,6 +66,7 @@ all: $(TARGET).elf %.elf: $(OBJ) $(CC) $^ $(HW) $(LDFLAGS) -o $@ + arm-none-eabi-size $@ %.hex: %.elf $(CP) -O ihex $^ $(TARGET).hex