summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-09-04 20:54:53 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-09-04 20:56:25 +0200
commit7710f0c6e98544183bdb060f8b025f20110ed57a (patch)
treec8e78443458d10474a07c4a9699437079039a6bf /Makefile
parentb7ff5c732efe890ea043cdbd00fde8653eca60eb (diff)
downloadembtoolkit-7710f0c6e98544183bdb060f8b025f20110ed57a.tar.gz
embtoolkit-7710f0c6e98544183bdb060f8b025f20110ed57a.tar.bz2
embtoolkit-7710f0c6e98544183bdb060f8b025f20110ed57a.tar.xz
Embtk: Add ability to set git revision as version when development version is used
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 37a2f25..0a5b0ed 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,9 @@
VERSION = 0
PATCHLEVEL = 1
SUBLEVEL = 0
-EXTRAVERSION = -git
-KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+EXTRAVERSION = -rc13
+KERNELVERSION = $(shell if [ -e .git ]; then echo `scripts/setlocalversion .`; \
+ else echo $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION); fi)
EMBTK_VERSION = $(KERNELVERSION)
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION EMBTK_VERSION