aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2013-12-09 20:23:28 +1100
committerAlexey Kardashevskiy <aik@ozlabs.ru>2013-12-09 20:23:28 +1100
commite086e9992c26bc23cd75dfad2239949c10da1fb1 (patch)
tree04e9cec89f6a8fb50c9056fc2d6634b56c5ade98
parent5354659cf53571cd5500771f71b109d339cd3394 (diff)
downloadSLOF-e086e9992c26bc23cd75dfad2239949c10da1fb1.zip
SLOF-e086e9992c26bc23cd75dfad2239949c10da1fb1.tar.gz
SLOF-e086e9992c26bc23cd75dfad2239949c10da1fb1.tar.bz2
use VERSION file to generate FW versionqemu-slof-20131209
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r--Makefile.gen5
-rw-r--r--VERSION1
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.gen b/Makefile.gen
index c9de86e..2fdf23f 100644
--- a/Makefile.gen
+++ b/Makefile.gen
@@ -24,10 +24,15 @@ else
ifneq (,$(wildcard ../.git))
RELEASE=git-$(shell git rev-parse --short=16 HEAD)
else
+ifneq (,$(shell cat ../VERSION))
+RELEASE="$(USER)@$(HOSTNAME) release $(shell cat ../VERSION)"
+export DRIVER_NAME=HEAD
+else
RELEASE="$(USER)@$(HOSTNAME)(private build)"
export DRIVER_NAME=HEAD
endif
endif
+endif
DRVDATE=$(shell date +%Y-%h%d)
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..69c4d10
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+20131209