firmware: name binaries including their git version number

Change-Id: I4309810368ce4e8e13ede974b67e69ca3f0a6f53
Closes: OS#3452
This commit is contained in:
Harald Welte
2019-06-20 18:31:28 +02:00
parent bc62335768
commit 155f57abcf

View File

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