diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-09 23:25:50 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-09 23:45:50 +0200 |
commit | 572e852fd02bc492e22bc6d14b9bc6d1ba492db4 (patch) | |
tree | 4640ce803131a8c4746e305f4c9af7eddb2badbd /backport/Makefile.real | |
parent | d5a0e005f00119af47d58eeb67cd93aca9294247 (diff) |
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 <johannes.berg@intel.com>
Diffstat (limited to 'backport/Makefile.real')
-rw-r--r-- | backport/Makefile.real | 5 |
1 files changed, 5 insertions, 0 deletions
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: |