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

Configure Feed

Select the types of activity you want to include in your feed.

perf build: Do all non-distro feature checks in one go

None of the if statements or variable assignments in the non-distro
block actually affect the feature checks. Just do them all in one place
so the flow isn't obscured.

Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Leo Yan <leo.yan@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <nick.desaulniers+lkml@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

James Clark and committed by
Arnaldo Carvalho de Melo
ae323bc2 7fc37b58

+12 -20
+12 -20
tools/perf/Makefile.config
··· 931 931 endif 932 932 933 933 ifdef BUILD_NONDISTRO 934 + # call all detections now so we get correct status in VF output 934 935 $(call feature_check,libbfd) 936 + $(call feature_check,disassembler-four-args) 937 + $(call feature_check,disassembler-init-styled) 938 + $(call feature_check,libbfd-buildid) 939 + $(call feature_check,libbfd-liberty) 940 + $(call feature_check,libbfd-liberty-z) 935 941 942 + # we may be on a system that requires -liberty and (maybe) -lz 943 + # to link against -lbfd; test each case individually here 936 944 ifeq ($(feature-libbfd), 1) 937 945 EXTLIBS += -lbfd -lopcodes 938 - else 939 - # we are on a system that requires -liberty and (maybe) -lz 940 - # to link against -lbfd; test each case individually here 941 - 942 - # call all detections now so we get correct 943 - # status in VF output 944 - $(call feature_check,libbfd-liberty) 945 - $(call feature_check,libbfd-liberty-z) 946 - 947 - ifeq ($(feature-libbfd-liberty), 1) 948 - EXTLIBS += -lbfd -lopcodes -liberty 949 - else 950 - ifeq ($(feature-libbfd-liberty-z), 1) 951 - EXTLIBS += -lbfd -lopcodes -liberty -lz 952 - endif 953 - endif 954 - $(call feature_check,disassembler-four-args) 955 - $(call feature_check,disassembler-init-styled) 946 + else ifeq ($(feature-libbfd-liberty), 1) 947 + EXTLIBS += -lbfd -lopcodes -liberty 948 + else ifeq ($(feature-libbfd-liberty-z), 1) 949 + EXTLIBS += -lbfd -lopcodes -liberty -lz 956 950 endif 957 951 958 952 CFLAGS += -DHAVE_LIBBFD_SUPPORT 959 953 CXXFLAGS += -DHAVE_LIBBFD_SUPPORT 960 954 $(call detected,CONFIG_LIBBFD) 961 - 962 - $(call feature_check,libbfd-buildid) 963 955 964 956 ifeq ($(feature-libbfd-buildid), 1) 965 957 CFLAGS += -DHAVE_LIBBFD_BUILDID_SUPPORT