From: Andy Shevchenko Date: Fri, 17 Jun 2016 13:01:08 +0000 (+0300) Subject: tools/acpi: use CROSS_COMPILE to define prefix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3bcf2d45d6a9c7950f58ec7dad20f22d422abd2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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. Signed-off-by: Andy Shevchenko Signed-off-by: Rafael J. Wysocki --- diff --git a/tools/power/acpi/Makefile.config b/tools/power/acpi/Makefile.config index 552af68d5414..a538ff44b108 100644 --- a/tools/power/acpi/Makefile.config +++ b/tools/power/acpi/Makefile.config @@ -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