]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pm: cpupower: Makefile: Fix cross compilation
authorPeng Fan <peng.fan@nxp.com>
Fri, 29 Nov 2024 01:20:05 +0000 (09:20 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 10 Dec 2024 00:51:53 +0000 (17:51 -0700)
commit3075476a7af666de3ec10b4f35d8e62db8fd5b6d
tree453090fc20b8674baa3806d74da762b2e08dfab9
parent694389cd2bdfc6bc646bbb0fd2a5684c5e8d5fbf
pm: cpupower: Makefile: Fix cross compilation

After commit f79473ed9220 ("pm: cpupower: Makefile: Allow overriding
cross-compiling env params") we would fail to cross compile cpupower in
buildroot which uses the recipe at [1] where only the CROSS variable is
being set.

The issue here is the use of the lazy evaluation for all variables: CC,
LD, AR, STRIP, RANLIB, rather than just CROSS.

[1]:
https://git.buildroot.net/buildroot/tree/package/linux-tools/linux-tool-cpupower.mk.in

Fixes: f79473ed9220 ("pm: cpupower: Makefile: Allow overriding cross-compiling env params")
Reported-by: Florian Fainelli <florian.fainelli@broadcom.com>
Closes: https://lore.kernel.org/all/2bbabd2c-24ef-493c-a199-594e5dada3da@broadcom.com/
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/Makefile