Browse Source

selftests/bpf: fix Makefile for passing LLC to the command line

Makefile has a LLC variable that is initialised to "llc", but can
theoretically be overridden from the command line ("make LLC=llc-6.0").
However, this fails because for LLVM probe check, "llc" is called
directly. Use the $(LLC) variable instead to fix this.

Fixes: 22c8852624fc ("bpf: improve selftests and add tests for meta pointer")
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Quentin Monnet 7 years ago
parent
commit
cd95a89282
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/testing/selftests/bpf/Makefile

+ 1 - 1
tools/testing/selftests/bpf/Makefile

@@ -39,7 +39,7 @@ $(BPFOBJ): force
 CLANG ?= clang
 CLANG ?= clang
 LLC   ?= llc
 LLC   ?= llc
 
 
-PROBE := $(shell llc -march=bpf -mcpu=probe -filetype=null /dev/null 2>&1)
+PROBE := $(shell $(LLC) -march=bpf -mcpu=probe -filetype=null /dev/null 2>&1)
 
 
 # Let newer LLVM versions transparently probe the kernel for availability
 # Let newer LLVM versions transparently probe the kernel for availability
 # of full BPF instruction set.
 # of full BPF instruction set.