]> git.baikalelectronics.ru Git - kernel.git/commit
cpupower: speed up generating git version string
authorMartin Kaistra <martin.kaistra@linutronix.de>
Wed, 12 Aug 2020 09:49:12 +0000 (11:49 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 20 Aug 2020 19:04:47 +0000 (13:04 -0600)
commit9735a06af4a44e5f53fda11149fe88520c5e0c3e
treea44cc5adde18abaaed9d4af4b1ea67da78fb8f14
parentaf67dc9c1ad3dfca2a931e5a8e0a9e5242dfe22e
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>
tools/power/cpupower/Makefile