diff --git a/perf.spec b/perf.spec index 51d012c..f0d1b38 100644 --- a/perf.spec +++ b/perf.spec @@ -62,6 +62,9 @@ BuildRequires: libunwind-devel BuildRequires: numactl-devel BuildRequires: python-devel BuildRequires: python3dist(setuptools) +%ifarch aarch64 +BuildRequires: opencsd-devel >= 1.0.0 +%endif BuildRequires: openssl-devel %if %{with perl} BuildRequires: perl-devel @@ -105,9 +108,12 @@ The python3-perf package contains a module that permits applications written in the Python programming language to use the interface to manipulate perf events. -# technically Makefile.config checks for lib64 but it seems to not work +# technically Makefile.config checks for lib64 but only for x86_64 # ifeq ($(SRCARCH)$(IS_64_BIT), x861) %global perf_flags VF=1 prefix=%{_prefix} lib=%{_lib} +%ifarch aarch64 +%global perf_flags %perf_flags CORESIGHT=1 +%endif %if %{without libbpf} %global perf_flags %perf_flags NO_LIBBPF=1 %endif