perf build: Warn about missing libelf before warning about missing libbpf
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 Oct 2023 21:14:52 +0000 (18:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Nov 2023 15:25:58 +0000 (12:25 -0300)
commit851bbccf6b0c152d98ecf0ec83d75fc97aebf43c
tree105cee1261cb0773b3626609643b824fd7b99f7d
parentc8e3ade38bc6545faece71cc6c642ad744d4cea3
perf build: Warn about missing libelf before warning about missing libbpf

As libelf is a requirement for libbpf if it is not available, as in some
container build tests where NO_LIBELF=1 is used, then better warn about
the most basic library first.

Ditto for libz, check its availability before libbpf too.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZUEehyDk0FkPnvMR@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.config