[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9d35ba5e-179e-4aef-b973-ad615489cfa4@linuxfoundation.org>
Date: Fri, 22 Nov 2024 08:25:09 -0700
From: Shuah Khan <skhan@...uxfoundation.org>
To: Florian Fainelli <florian.fainelli@...adcom.com>,
linux-kernel@...r.kernel.org
Cc: Thomas Renninger <trenn@...e.com>, Shuah Khan <shuah@...nel.org>,
"John B. Wyatt IV" <jwyatt@...hat.com>, John Kacur <jkacur@...hat.com>,
Peng Fan <peng.fan@....com>,
"open list:CPU POWER MONITORING SUBSYSTEM" <linux-pm@...r.kernel.org>,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH] pm: cpupower: Makefile: Fix cross compilation
On 11/20/24 21:43, Florian Fainelli wrote:
> After 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")
> Signed-off-by: Florian Fainelli <florian.fainelli@...adcom.com>
> Change-Id: Id98f2c648c82c08044b7281714bc6a8e921629ad
> ---
> tools/power/cpupower/Makefile | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile
> index 175004ce44b2..96bb1e5f3970 100644
> --- a/tools/power/cpupower/Makefile
> +++ b/tools/power/cpupower/Makefile
> @@ -87,11 +87,11 @@ INSTALL_SCRIPT = ${INSTALL} -m 644
> # to something more interesting, like "arm-linux-". If you want
> # to compile vs uClibc, that can be done here as well.
> CROSS ?= #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
> -CC ?= $(CROSS)gcc
> -LD ?= $(CROSS)gcc
> -AR ?= $(CROSS)ar
> -STRIP ?= $(CROSS)strip
> -RANLIB ?= $(CROSS)ranlib
> +CC = $(CROSS)gcc
> +LD = $(CROSS)gcc
> +AR = $(CROSS)ar
> +STRIP = $(CROSS)strip
> +RANLIB = $(CROSS)ranlib
> HOSTCC = gcc
> MKDIR = mkdir
>
Thank you for the patch. I will apply this once the merge window
closes.
thanks,
-- Shuah
Powered by blists - more mailing lists