Skip to content

Commit 527b777

Browse files
djfunshuahkh
authored andcommitted
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>
1 parent d1876f3 commit 527b777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/power/cpupower/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ DESTDIR ?=
5151
# Package-related definitions. Distributions can modify the version
5252
# and _should_ modify the PACKAGE_BUGREPORT definition
5353

54-
VERSION= $(shell ./utils/version-gen.sh)
54+
VERSION:= $(shell ./utils/version-gen.sh)
5555
LIB_MAJ= 0.0.1
5656
LIB_MIN= 0
5757

0 commit comments

Comments
 (0)