Skip to contentSkip to conversation

tools/acpi: use CROSS_COMPILE to define prefix

PATCH Applied Andy Shevchenko 2 participants 2 messages Jun 17, 2016 – Jun 24, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/acpi: use CROSS_COMPILE to define prefix

CROSS_COMPILE can be considered as standard definition for toolchain prefix when cross-compiling. Use it here.

---
 tools/power/acpi/Makefile.config | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tools/power/acpi/Makefile.config +4 -3
index 552af68..a538ff4 100644
@@ -54,9 +54,10 @@ INSTALL_SCRIPT = ${INSTALL_PROGRAM}
 # 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
-STRIP = $(CROSS)strip
+CROSS_COMPILE ?= $(CROSS)
+CC = $(CROSS_COMPILE)gcc
+LD = $(CROSS_COMPILE)gcc
+STRIP = $(CROSS_COMPILE)strip
 HOSTCC = gcc
 
 # check if compiler option is supported
Signature · 1 line
2.8.1
#1 lore raw
Quoted 16 lines · Andy Shevchenko

CROSS_COMPILE can be considered as standard definition for toolchain prefix when cross-compiling. Use it here.

---
 tools/power/acpi/Makefile.config | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tools/power/acpi/Makefile.config +0 -0
index 552af68..a538ff4 100644
@@ -54,9 +54,10 @@ INSTALL_SCRIPT = ${INSTALL_PROGRAM}
 # 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-

tools/power/acpi/Makefile.config INSTALL_SCRIPT = ${INSTALL_PROGRAM} · line 63

Quoted 10 lines
tools/power/acpi/Makefile.config +4 -3
-CC = $(CROSS)gcc
-LD = $(CROSS)gcc
-STRIP = $(CROSS)strip
+CROSS_COMPILE ?= $(CROSS)
+CC = $(CROSS_COMPILE)gcc
+LD = $(CROSS_COMPILE)gcc
+STRIP = $(CROSS_COMPILE)strip
 HOSTCC = gcc
 
 # check if compiler option is supported

Applied, thanks!