aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wild <ewild@sysmocom.de>2019-10-09 15:34:14 +0200
committerHarald Welte <laforge@osmocom.org>2019-10-09 17:58:15 +0200
commit6a902a39e98138fcca7f5065b6515092c9d9e37d (patch)
tree9900afcb2f7b52accf2dc14bc4f5dcdf0ddbc919
parent13950f5ebe85b2dcf5ee441d69dde6090e07ea5a (diff)
allow different prefixes, print memory usage
-rw-r--r--sysmoOCTSIM/gcc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysmoOCTSIM/gcc/Makefile b/sysmoOCTSIM/gcc/Makefile
index 83b127f..3d89b25 100644
--- a/sysmoOCTSIM/gcc/Makefile
+++ b/sysmoOCTSIM/gcc/Makefile
@@ -2,7 +2,7 @@
# Manually edited. Do not overwrite with Automatically-generated file.
################################################################################
-SYSTEM_PREFIX:=/usr/local/arm-none-eabi
+SYSTEM_PREFIX?=/usr/local/arm-none-eabi
EXTRA_LIBS=$(SYSTEM_PREFIX)/lib/libosmocore.a
EXTRA_CFLAGS=-I$(SYSTEM_PREFIX)/include -I../../ccid_common
CROSS_COMPILE= arm-none-eabi-
@@ -161,7 +161,7 @@ $(OUTPUT_FILE_PATH): $(OBJS)
@echo Building target: $@
@echo Invoking: ARM/GNU Linker
$(CC) -o $(OUTPUT_FILE_NAME).elf $(OBJS) $(EXTRA_LIBS) -Wl,--start-group -lm -Wl,--end-group -mthumb \
--Wl,-Map="$(OUTPUT_FILE_NAME).map" --specs=nano.specs -Wl,--gc-sections -mcpu=cortex-m4 \
+-Wl,-Map="$(OUTPUT_FILE_NAME).map" --specs=nano.specs -Wl,--gc-sections -Wl,--print-memory-usage -mcpu=cortex-m4 \
\
-T"../gcc/gcc/same54n19a_dfu.ld" \
-L"../gcc/gcc"