Skip to content

Commit a90777b

Browse files
captain5050acmel
authored andcommitted
perf build: Move libopcode disasm tests to BUILD_NONDISTRO
The disasm feature tests feature-disassembler-four-args and feature-disassembler-init-styled link against libopcodes part of binutils which is license incompatible (GPLv3) with perf. Moving these tests out of the common config will help improve build time. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent c5b76ab commit a90777b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tools/perf/Makefile.config

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,14 @@ ifdef BUILD_NONDISTRO
941941
else
942942
$(warning Old version of libbfd/binutils things like PE executable profiling will not be available)
943943
endif
944+
945+
ifeq ($(feature-disassembler-four-args), 1)
946+
CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE
947+
endif
948+
949+
ifeq ($(feature-disassembler-init-styled), 1)
950+
CFLAGS += -DDISASM_INIT_STYLED
951+
endif
944952
endif
945953

946954
ifndef NO_LIBLLVM
@@ -1032,14 +1040,6 @@ ifdef HAVE_KVM_STAT_SUPPORT
10321040
CFLAGS += -DHAVE_KVM_STAT_SUPPORT
10331041
endif
10341042

1035-
ifeq ($(feature-disassembler-four-args), 1)
1036-
CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE
1037-
endif
1038-
1039-
ifeq ($(feature-disassembler-init-styled), 1)
1040-
CFLAGS += -DDISASM_INIT_STYLED
1041-
endif
1042-
10431043
ifeq (${IS_64_BIT}, 1)
10441044
ifndef NO_PERF_READ_VDSO32
10451045
$(call feature_check,compile-32)

0 commit comments

Comments
 (0)