summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2017-09-20 15:04:36 +0930
committerAlistair Popple <alistair@popple.id.au>2017-09-20 15:50:34 +1000
commit6a082b4a7fbb5a1649195ccd301a3c74fea00018 (patch)
tree9aa562a03e2aac9dcf618d46f38b0281931b16ea
parentd187052b3359e0953aad3e7976e915d80460655e (diff)
downloadpdbg-6a082b4a7fbb5a1649195ccd301a3c74fea00018.tar.gz
pdbg-6a082b4a7fbb5a1649195ccd301a3c74fea00018.zip
Allow command line to override GIT_SHA1
This allows tools that do tarball builds from git (eg. buildroot) to manually set the GIT SHA1. Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 4f78546..da7c5fb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = foreign
-GIT_SHA1 = `git --work-tree=$(top_srcdir) --git-dir=$(top_srcdir)/.git describe --always --long --dirty || echo unknown`
+GIT_SHA1 ?= `git --work-tree=$(top_srcdir) --git-dir=$(top_srcdir)/.git describe --always --long --dirty || echo unknown`
include libfdt/Makefile.libfdt
OpenPOWER on IntegriCloud