[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240912013846.3058728-2-peng.fan@oss.nxp.com>
Date: Thu, 12 Sep 2024 09:38:45 +0800
From: "Peng Fan (OSS)" <peng.fan@....nxp.com>
To: Thomas Renninger <trenn@...e.com>,
Shuah Khan <shuah@...nel.org>,
"John B. Wyatt IV" <jwyatt@...hat.com>,
John Kacur <jkacur@...hat.com>,
linux-pm@...r.kernel.org (open list:CPU POWER MONITORING SUBSYSTEM),
linux-kernel@...r.kernel.org (open list)
Cc: Peng Fan <peng.fan@....com>
Subject: [PATCH 2/2] pm: cpupower: Makefile: better support cross-compiling
From: Peng Fan <peng.fan@....com>
Allow overridding the envs, this will be easier to user Yocto
cross-compiler toolchains to build cpupower with only two steps:
source (toolchain path)/environment-setup-armv8a-poky-linux
make
Signed-off-by: Peng Fan <peng.fan@....com>
---
tools/power/cpupower/Makefile | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile
index 6c02f401069e..e2a48af6fa2a 100644
--- a/tools/power/cpupower/Makefile
+++ b/tools/power/cpupower/Makefile
@@ -86,12 +86,12 @@ INSTALL_SCRIPT = ${INSTALL} -m 644
# If you are running a cross compiler, you may want to set this
# 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
+CROSS ?= #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
+CC ?= $(CROSS)gcc
+LD ?= $(CROSS)gcc
+AR ?= $(CROSS)ar
+STRIP ?= $(CROSS)strip
+RANLIB ?= $(CROSS)ranlib
HOSTCC = gcc
MKDIR = mkdir
--
2.37.1
Powered by blists - more mailing lists