diff options
| author | Leo Yan <leo.yan@arm.com> | 2026-06-02 17:47:14 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-06-15 03:32:53 +0300 |
| commit | b40ba139371c2ba4beffe0533c6d85fda9bc932c (patch) | |
| tree | 1293fde1ba6812a65d065af928d7327e8e65e501 | |
| parent | f3846b3800a2cfda9c900b2e94525a1027b04424 (diff) | |
| download | linux-b40ba139371c2ba4beffe0533c6d85fda9bc932c.tar.xz | |
tools/bpf: build: Append extra cflags
Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to
the compiler.
Signed-off-by: Leo Yan <leo.yan@arm.com>
Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260602-tools_build_fix_zero_init_bpf_only-v2-5-c76e5250ea1c@arm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
| -rw-r--r-- | tools/bpf/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/Makefile b/tools/bpf/Makefile index fd2585af1252..9c19e81f3c27 100644 --- a/tools/bpf/Makefile +++ b/tools/bpf/Makefile @@ -11,6 +11,7 @@ INSTALL ?= install CFLAGS += -Wall -O2 CFLAGS += -D__EXPORTED_HEADERS__ -I$(srctree)/tools/include/uapi \ -I$(srctree)/tools/include +CFLAGS += $(EXTRA_CFLAGS) # This will work when bpf is built in tools env. where srctree # isn't set and when invoked from selftests build, where srctree |
