From: Martin Kaistra Date: Wed, 12 Aug 2020 09:49:12 +0000 (+0200) Subject: cpupower: speed up generating git version string X-Git-Tag: v5.10-rc1~34^2~1^4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=527b7779e5ecabb057089b760140309bdcacc16a;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: Thomas Renninger Signed-off-by: Shuah Khan --- diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index c8622497ef235..c7bcddbd486d7 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