From 155f57abcfda0c1a0be75f9501de129d39a77997 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 20 Jun 2019 18:31:28 +0200 Subject: [PATCH] firmware: name binaries including their git version number Change-Id: I4309810368ce4e8e13ede974b67e69ca3f0a6f53 Closes: OS#3452 --- firmware/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/Makefile b/firmware/Makefile index 0f70bf4a..646d2f33 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