From 7710f0c6e98544183bdb060f8b025f20110ed57a Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 4 Sep 2010 20:54:53 +0200 Subject: Embtk: Add ability to set git revision as version when development version is used Signed-off-by: Abdoulaye Walsimou Gaye --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3