diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2020-11-10 19:43:05 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2020-11-11 23:18:22 +0300 |
commit | c8a950d0d3b926a02c7b2e713850d38217cec3d1 (patch) | |
tree | 92ccac74b4a9b1bd882a570f2a867908d2e66b50 /tools/bpf | |
parent | 7112d127984bd7b0c8ded7973b358829f16735f5 (diff) | |
download | linux-c8a950d0d3b926a02c7b2e713850d38217cec3d1.tar.xz |
tools: Factor HOSTCC, HOSTLD, HOSTAR definitions
Several Makefiles in tools/ need to define the host toolchain variables.
Move their definition to tools/scripts/Makefile.include
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/bpf/20201110164310.2600671-2-jean-philippe@linaro.org
Diffstat (limited to 'tools/bpf')
-rw-r--r-- | tools/bpf/resolve_btfids/Makefile | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile index 66cb92136de4..bf656432ad73 100644 --- a/tools/bpf/resolve_btfids/Makefile +++ b/tools/bpf/resolve_btfids/Makefile @@ -18,15 +18,6 @@ else endif # always use the host compiler -ifneq ($(LLVM),) -HOSTAR ?= llvm-ar -HOSTCC ?= clang -HOSTLD ?= ld.lld -else -HOSTAR ?= ar -HOSTCC ?= gcc -HOSTLD ?= ld -endif AR = $(HOSTAR) CC = $(HOSTCC) LD = $(HOSTLD) |