From e086e9992c26bc23cd75dfad2239949c10da1fb1 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Mon, 9 Dec 2013 20:23:28 +1100 Subject: use VERSION file to generate FW version Signed-off-by: Alexey Kardashevskiy --- Makefile.gen | 5 +++++ VERSION | 1 + 2 files changed, 6 insertions(+) create mode 100644 VERSION 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 -- cgit v1.1