Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
a90777bb c5b76ab5

+8 -8
+8 -8
tools/perf/Makefile.config
··· 941 941 else 942 942 $(warning Old version of libbfd/binutils things like PE executable profiling will not be available) 943 943 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 944 952 endif 945 953 946 954 ifndef NO_LIBLLVM ··· 1038 1030 1039 1031 ifdef HAVE_KVM_STAT_SUPPORT 1040 1032 CFLAGS += -DHAVE_KVM_STAT_SUPPORT 1041 - endif 1042 - 1043 - ifeq ($(feature-disassembler-four-args), 1) 1044 - CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE 1045 - endif 1046 - 1047 - ifeq ($(feature-disassembler-init-styled), 1) 1048 - CFLAGS += -DDISASM_INIT_STYLED 1049 1033 endif 1050 1034 1051 1035 ifeq (${IS_64_BIT}, 1)