bpf: Replace deprecated -target with --target= for Clang
authorFangrui Song <maskray@google.com>
Sat, 24 Jun 2023 00:18:56 +0000 (00:18 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 29 Jun 2023 13:46:17 +0000 (15:46 +0200)
commitbbaf1ff06af49e856501024abbe161d96c1f0d66
tree7dabb39068dd6e1a411e094c55d7d2c32581a0b1
parentda1a055d01ed0c18402dd1f1934096ac4bb36ada
bpf: Replace deprecated -target with --target= for Clang

The -target option has been deprecated since clang 3.4 in 2013. Therefore, use
the preferred --target=bpf form instead. This also matches how we use --target=
in scripts/Makefile.clang.

Signed-off-by: Fangrui Song <maskray@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Link: https://github.com/llvm/llvm-project/commit/274b6f0c87a6a1798de0a68135afc7f95def6277
Link: https://lore.kernel.org/bpf/20230624001856.1903733-1-maskray@google.com
18 files changed:
Documentation/bpf/bpf_devel_QA.rst
Documentation/bpf/btf.rst
Documentation/bpf/llvm_reloc.rst
drivers/hid/bpf/entrypoints/Makefile
kernel/bpf/preload/iterators/Makefile
samples/bpf/Makefile
samples/bpf/gnu/stubs.h
samples/bpf/test_lwt_bpf.sh
samples/hid/Makefile
tools/bpf/bpftool/Documentation/bpftool-gen.rst
tools/bpf/bpftool/Makefile
tools/bpf/runqslower/Makefile
tools/build/feature/Makefile
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/gnu/stubs.h
tools/testing/selftests/hid/Makefile
tools/testing/selftests/net/Makefile
tools/testing/selftests/tc-testing/Makefile