[build] make sure gcc version is printed at the beginning

This commit is contained in:
Felix Ruess
2014-04-11 20:01:00 +02:00
parent bd00beb101
commit 75164875c4
+8 -4
View File
@@ -7,18 +7,22 @@
# This has some common targets
# for bare metal systems like on the ARM7TDMI, cortex M3/4
ifdef CC
CC_VERSION := $(shell $(CC) --version | head -1)
else
CC_VERSION := Not found
endif
printcommands:
@echo ""
@echo "Using CC = $(CC)"
@echo "GCC version: $(CC_VERSION)" '\n'
# @echo "Using CC = $(CC)"
# @echo "Using LD = $(LD)"
# @echo "Using CP = $(CP)"
# @echo "Using DMP = $(DMP)"
# @echo "Using NM = $(NM)"
# @echo "Using SIZE = $(SIZE)"
@echo "GCC version:"
@$(CC) --version | head -1
@echo ""
# @echo ""
# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(OBJDIR)/$(TARGET).hex