summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2023-06-26 14:13:25 +0200
committerDamien George <damien@micropython.org>2023-06-27 14:58:07 +1000
commit5ef7ce5116dd419b3f217fac5ab0cbf3634a028d (patch)
tree218de57dc3f975cfe2a86528429d773376c4dca2
parentcfaa9a4997b0d57357631a82d1e33205d26972d4 (diff)
samd/Makefile: Print memory region usage instead of totals.
Signed-off-by: robert-hh <robert@hammelrath.com>
-rw-r--r--ports/samd/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/samd/Makefile b/ports/samd/Makefile
index e966fe214..7e5c334e6 100644
--- a/ports/samd/Makefile
+++ b/ports/samd/Makefile
@@ -78,7 +78,7 @@ ifeq ($(DEBUG),1)
CFLAGS += -O0
else
CFLAGS += -Os -DNDEBUG
-LDFLAGS += --gc-sections
+LDFLAGS += --gc-sections --print-memory-usage
CFLAGS += -fdata-sections -ffunction-sections
endif
@@ -198,7 +198,6 @@ all: $(BUILD)/firmware.uf2
$(BUILD)/firmware.elf: $(OBJ)
$(ECHO) "LINK $@"
$(Q)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
- $(Q)$(SIZE) $@
$(BUILD)/firmware.bin: $(BUILD)/firmware.elf
$(Q)$(OBJCOPY) -O binary -j .isr_vector -j .text -j .data $^ $(BUILD)/firmware.bin