Merge "submodule: Kill fuel-astute"
[armband.git] / patches / opnfv-fuel / 0015-build-Makefile-Overrideable-product-commit-hash.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Mon, 18 Jul 2016 23:50:30 +0200
3 Subject: [PATCH] build/Makefile: Overrideable product, commit hash.
4
5 For Armband's build system, using only the Fuel commit ID is not
6 enough to fully describe the state of the source code, as patches
7 are also applied to other fuel modules (as git submodules).
8 Instead, a pointer to a valid Armband commit ID should be used.
9
10 While at it, allow product name to be overriden, to signal the
11 commit ID should be looked up inside the Armband repository.
12
13 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
14 ---
15  build/Makefile | 4 ++--
16  1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/build/Makefile b/build/Makefile
19 index ec5d27a..ba117da 100644
20 --- a/build/Makefile
21 +++ b/build/Makefile
22 @@ -21,11 +21,11 @@ SHELL = /bin/bash
23  export MOSVERSION = 9.0
24  export ISOSRC = file:$(shell pwd)/fuel-$(MOSVERSION).iso
25  export ISOCACHE = $(shell pwd)/$(shell basename $(ISOSRC))
26 -export PRODNO = "OPNFV_FUEL"
27 +export PRODNO ?= "OPNFV_FUEL"
28  export REVSTATE = "P0000"
29  export USER ?= $(shell whoami)
30  export BUILD_DATE = $(shell date --utc +%Y-%m-%d:%H:%M)
31 -export OPNFV_GIT_SHA = $(shell git rev-parse HEAD)
32 +export OPNFV_GIT_SHA ?= $(shell git rev-parse HEAD)
33  # Store in /etc/fuel_build_id on fuel master
34  export BUILD_ID := $(PRODNO)_$(BUILD_DATE)_$(OPNFV_GIT_SHA)
35