Fixup git revision in axTLS output

This commit is contained in:
Angus Gratton 2015-06-02 15:06:00 +10:00
parent 93c3e1a53a
commit c8bc934b3d

View file

@ -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_'