Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Martin Kaistra and committed by
Shuah Khan
527b7779 d1876f35

+1 -1
+1 -1
tools/power/cpupower/Makefile
··· 51 51 # Package-related definitions. Distributions can modify the version 52 52 # and _should_ modify the PACKAGE_BUGREPORT definition 53 53 54 - VERSION= $(shell ./utils/version-gen.sh) 54 + VERSION:= $(shell ./utils/version-gen.sh) 55 55 LIB_MAJ= 0.0.1 56 56 LIB_MIN= 0 57 57