Skip to content

Commit f79473e

Browse files
MrVanshuahkh
authored andcommitted
pm: cpupower: Makefile: Allow overriding cross-compiling env params
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>
1 parent c0dd650 commit f79473e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/power/cpupower/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ INSTALL_SCRIPT = ${INSTALL} -m 644
8686
# If you are running a cross compiler, you may want to set this
8787
# to something more interesting, like "arm-linux-". If you want
8888
# to compile vs uClibc, that can be done here as well.
89-
CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
90-
CC = $(CROSS)gcc
91-
LD = $(CROSS)gcc
92-
AR = $(CROSS)ar
93-
STRIP = $(CROSS)strip
94-
RANLIB = $(CROSS)ranlib
89+
CROSS ?= #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
90+
CC ?= $(CROSS)gcc
91+
LD ?= $(CROSS)gcc
92+
AR ?= $(CROSS)ar
93+
STRIP ?= $(CROSS)strip
94+
RANLIB ?= $(CROSS)ranlib
9595
HOSTCC = gcc
9696
MKDIR = mkdir
9797

0 commit comments

Comments
 (0)