summaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower
diff options
context:
space:
mode:
authorMartin Kaistra <martin.kaistra@linutronix.de>2020-08-12 11:49:12 +0200
committerShuah Khan <skhan@linuxfoundation.org>2020-08-20 21:04:47 +0200
commit527b7779e5ecabb057089b760140309bdcacc16a (patch)
treea44cc5adde18abaaed9d4af4b1ea67da78fb8f14 /tools/power/cpupower
parentcpupowerutils: fix spelling mistake "dependant" -> "dependent" (diff)
downloadlinux-527b7779e5ecabb057089b760140309bdcacc16a.tar.xz
linux-527b7779e5ecabb057089b760140309bdcacc16a.zip
cpupower: speed up generating git version string
The variable VERSION is expanded for every use of CFLAGS. This causes "git describe" to get called multiple times on the kernel tree, which can be quite slow. The git revision does not change during build, so we can use simple variable expansion to set VERSION. Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de> Acked-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/power/cpupower')
-rw-r--r--tools/power/cpupower/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile
index c8622497ef23..c7bcddbd486d 100644
--- a/tools/power/cpupower/Makefile
+++ b/tools/power/cpupower/Makefile
@@ -51,7 +51,7 @@ DESTDIR ?=
# Package-related definitions. Distributions can modify the version
# and _should_ modify the PACKAGE_BUGREPORT definition
-VERSION= $(shell ./utils/version-gen.sh)
+VERSION:= $(shell ./utils/version-gen.sh)
LIB_MAJ= 0.0.1
LIB_MIN= 0