tsaitgaist has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/simtrace2/+/16555 )


Change subject: Makefile: add linker option showing memory usage
......................................................................

Makefile: add linker option showing memory usage

this will help seeing how much free space is available for the
bootloader (which is restricted to 16 kB)

Change-Id: Ie74a1480c2f340765046be9bdfc3a8c4ba851e9b
---
M firmware/Makefile
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/55/16555/1

diff --git a/firmware/Makefile b/firmware/Makefile
index 79e9a31..bd634aa 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -170,7 +170,7 @@
 CFLAGS += -DBOARD=\"$(BOARD)\" -DBOARD_$(BOARD)
 CFLAGS += -DAPPLICATION=\"$(APP)\" -DAPPLICATION_$(APP)
 ASFLAGS = -mcpu=cortex-m3 -mthumb -Wall -g $(OPTIMIZATION) $(INCLUDES) 
-D$(CHIP) -D__ASSEMBLY__
-LDFLAGS = -mcpu=cortex-m3 -mthumb -Wl,--cref -Wl,--check-sections 
-Wl,--gc-sections -Wl,--entry=ResetException 
-Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align 
-Wl,--warn-unresolved-symbols $(LIB)
+LDFLAGS = -mcpu=cortex-m3 -mthumb -Wl,--cref -Wl,--check-sections 
-Wl,--gc-sections -Wl,--entry=ResetException 
-Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align 
-Wl,--warn-unresolved-symbols -Wl,--print-memory-usage $(LIB)
 #LD_OPTIONAL=-Wl,--print-gc-sections -Wl,--stats

 # Append BIN directories to output filename

--
To view, visit https://gerrit.osmocom.org/c/simtrace2/+/16555
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: Ie74a1480c2f340765046be9bdfc3a8c4ba851e9b
Gerrit-Change-Number: 16555
Gerrit-PatchSet: 1
Gerrit-Owner: tsaitgaist <[email protected]>
Gerrit-MessageType: newchange

Reply via email to