From 572e852fd02bc492e22bc6d14b9bc6d1ba492db4 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 9 Apr 2013 23:25:50 +0200 Subject: git tracker: add special version string to build In output trees created with the git tracker, we avoid changing the "versions" file all the time and just put "(see git)" into the versions. However, it's useful to still be able to identify it, and when using this the backport is (usually) built in the git tree. Use this fact and add the git tree commit into a new variable to put it into the MODULE_VERSION and also print it at runtime. Signed-off-by: Johannes Berg --- backport/Makefile.real | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backport/Makefile.real') diff --git a/backport/Makefile.real b/backport/Makefile.real index 954fc869..40668c24 100644 --- a/backport/Makefile.real +++ b/backport/Makefile.real @@ -1,5 +1,10 @@ include versions export BACKPORTS_VERSION BACKPORTED_KERNEL_VERSION BACKPORTED_KERNEL_NAME +ifdef BACKPORTS_GIT_TRACKED +export BACKPORTS_GIT_TRACKER_DEF=-DBACKPORTS_GIT_TRACKED=\"$(BACKPORTS_GIT_TRACKED)\" +else +export BACKPORTS_GIT_TRACKER_DEF= +endif # disable built-in rules for this file .SUFFIXES: -- cgit v1.2.3