]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pm: cpupower: Makefile: Allow overriding cross-compiling env params
authorPeng Fan <peng.fan@nxp.com>
Thu, 19 Sep 2024 12:08:12 +0000 (20:08 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 30 Sep 2024 15:40:36 +0000 (09:40 -0600)
Allow overriding the cross-comple env parameters to make it
easier for Yocto users. Then 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@nxp.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/Makefile

index 6c02f401069ec1dfbfa9151acf83f2e7d8367a5e..e2a48af6fa2a580c4e4df1053af7146221dd20fe 100644 (file)
@@ -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