aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-06-20 18:31:28 +0200
committerHarald Welte <laforge@gnumonks.org>2019-06-20 18:31:28 +0200
commit155f57abcfda0c1a0be75f9501de129d39a77997 (patch)
tree50b98004e1f330af515cea89fd90e17c8b6c189a
parentbc62335768ec7d786c811dc7b6575f795fc02d6d (diff)
firmware: name binaries including their git version number
-rw-r--r--firmware/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index 0f70bf4..646d2f3 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -28,6 +28,7 @@
# Makefile for compiling the Getting Started with SAM3S Microcontrollers project
+GIT_VERSION=$(shell $(TOP)/git-version-gen $(TOP)/.tarvers)
#-------------------------------------------------------------------------------
# User-modifiable options
#-------------------------------------------------------------------------------
@@ -44,7 +45,7 @@ MEMORIES ?= flash dfu
APP ?= dfu
# Output directories
-OUTPUT = $(BOARD)-$(APP)
+OUTPUT = $(BOARD)-$(APP)-$(GIT_VERSION)
BIN = bin
OBJ = obj/$(BOARD)
@@ -73,7 +74,6 @@ GDB = $(CROSS_COMPILE)gdb
NM = $(CROSS_COMPILE)nm
TOP=..
-GIT_VERSION=$(shell $(TOP)/git-version-gen $(TOP)/.tarvers)
#-------------------------------------------------------------------------------
# Files