diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-06-17 09:01:08 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-23 09:32:16 -0400 |
commit | a3bcf2d45d6a9c7950f58ec7dad20f22d422abd2 (patch) | |
tree | 6064c3752c0fa86a7c3bd85387425d42cf4218e5 | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) |
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | tools/power/acpi/Makefile.config | 7 |
1 files changed, 4 insertions, 3 deletions
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} | |||
54 | # to something more interesting, like "arm-linux-". If you want | 54 | # to something more interesting, like "arm-linux-". If you want |
55 | # to compile vs uClibc, that can be done here as well. | 55 | # to compile vs uClibc, that can be done here as well. |
56 | CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- | 56 | CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- |
57 | CC = $(CROSS)gcc | 57 | CROSS_COMPILE ?= $(CROSS) |
58 | LD = $(CROSS)gcc | 58 | CC = $(CROSS_COMPILE)gcc |
59 | STRIP = $(CROSS)strip | 59 | LD = $(CROSS_COMPILE)gcc |
60 | STRIP = $(CROSS_COMPILE)strip | ||
60 | HOSTCC = gcc | 61 | HOSTCC = gcc |
61 | 62 | ||
62 | # check if compiler option is supported | 63 | # check if compiler option is supported |