mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
34021caef7
There is no need to set the pahole v1.25-only flags in an "ifeq" version clause; we are already in a <= v1.25 branch of "ifeq", so that combined with a "test-ge" v1.25 ensures the flags will be applied for v1.25 only. Suggested-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Alan Maguire <alan.maguire@oracle.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20240514162716.2448265-1-alan.maguire@oracle.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
29 lines
901 B
Makefile
29 lines
901 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
pahole-ver := $(CONFIG_PAHOLE_VERSION)
|
|
pahole-flags-y :=
|
|
|
|
ifeq ($(call test-le, $(pahole-ver), 125),y)
|
|
|
|
# pahole 1.18 through 1.21 can't handle zero-sized per-CPU vars
|
|
ifeq ($(call test-le, $(pahole-ver), 121),y)
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 118) += --skip_encoding_btf_vars
|
|
endif
|
|
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 121) += --btf_gen_floats
|
|
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 122) += -j
|
|
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 125) += --skip_encoding_btf_inconsistent_proto --btf_gen_optimized
|
|
|
|
else
|
|
|
|
# Switch to using --btf_features for v1.26 and later.
|
|
pahole-flags-$(call test-ge, $(pahole-ver), 126) = -j --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func
|
|
|
|
endif
|
|
|
|
pahole-flags-$(CONFIG_PAHOLE_HAS_LANG_EXCLUDE) += --lang_exclude=rust
|
|
|
|
export PAHOLE_FLAGS := $(pahole-flags-y)
|