From c8bc934b3d68abf1775c8a17c2425f652049454e Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 2 Jun 2015 15:06:00 +1000 Subject: [PATCH] Fixup git revision in axTLS output --- common.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common.mk b/common.mk index c5467d0..81c4aca 100644 --- a/common.mk +++ b/common.mk @@ -70,10 +70,13 @@ ifeq ($(FLAVOR),debug) CFLAGS += -g -O0 LDFLAGS += -g -O0 else - CFLAGS += -g -O2 -DGITSHORTREV=$(GITSHORTREV) + CFLAGS += -g -O2 LDFLAGS += -g -O2 endif +GITSHORTREV=\"$(shell cd $(ROOT); git rev-parse --short -q HEAD)\" +CFLAGS += -DGITSHORTREV=$(GITSHORTREV) + LINKER_SCRIPTS = ld/eagle.app.v6.ld ld/eagle.rom.addr.v6.ld #### @@ -164,8 +167,6 @@ COMPONENT_ARS += $$($(1)_AR) -include $$($(1)_OBJ_FILES:.o=.d) endef -GITSHORTREV=\"$(shell cd $(ROOT); git rev-parse --short -q HEAD)\" - ## Linking rules for SDK libraries ## SDK libraries are preprocessed to: # - prefix all defined symbols with 'sdk_'