diff options
author | David Carrillo-Cisneros <davidcc@google.com> | 2017-08-27 03:54:39 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-08-28 15:44:45 -0400 |
commit | 12024aacb0170779cd0b976b06d2e9b1767cf142 (patch) | |
tree | b87cdce0e9af6ff95b2d293e23d2f76514c6ce14 /tools | |
parent | 39a59f1e3ea541035637432db39158a461f29146 (diff) |
tools lib: Allow external definition of CC, AR and LD
Use already defined values for CC, AR and LD when available.
Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Paul Turner <pjt@google.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20170827075442.108534-4-davidcc@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/api/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile index eb6e0b36bfc1..2538675731c7 100644 --- a/tools/lib/api/Makefile +++ b/tools/lib/api/Makefile | |||
@@ -8,9 +8,9 @@ srctree := $(patsubst %/,%,$(dir $(srctree))) | |||
8 | #$(info Determined 'srctree' to be $(srctree)) | 8 | #$(info Determined 'srctree' to be $(srctree)) |
9 | endif | 9 | endif |
10 | 10 | ||
11 | CC = $(CROSS_COMPILE)gcc | 11 | CC ?= $(CROSS_COMPILE)gcc |
12 | AR = $(CROSS_COMPILE)ar | 12 | AR ?= $(CROSS_COMPILE)ar |
13 | LD = $(CROSS_COMPILE)ld | 13 | LD ?= $(CROSS_COMPILE)ld |
14 | 14 | ||
15 | MAKEFLAGS += --no-print-directory | 15 | MAKEFLAGS += --no-print-directory |
16 | 16 | ||