summaryrefslogtreecommitdiffstats
path: root/kernel.spec
diff options
context:
space:
mode:
authorPetr Holasek <pholasek@redhat.com>2014-10-23 18:51:50 +0200
committerJosh Boyer <jwboyer@fedoraproject.org>2014-10-24 10:24:01 -0400
commitd9594c9439a89b571548043b2dbb24a5651fe9da (patch)
treefd9d55dd830db2d788836fad25489997d90f2e8f /kernel.spec
parent3fbe156c4a0a525745f7626501fd3375e18a0a38 (diff)
downloadkernel-d9594c9439a89b571548043b2dbb24a5651fe9da.tar.gz
kernel-d9594c9439a89b571548043b2dbb24a5651fe9da.tar.xz
kernel-d9594c9439a89b571548043b2dbb24a5651fe9da.zip
kernel.spec: enable building of perf with libnuma support
Patch makes perf package dependent on numactl-devel and so enables numa subsystem benchmarks for perf bench command. Can be easily reproduced by calling 'perf bench numa mem -a': - current output: 'Unknown subsystem:numa' - built with this patch: 'Running numa/mem benchmark...' [Edited to apply for all architectures except s390/s390x by Josh Boyer] Signed-off-by: Petr Holasek <pholasek@redhat.com>
Diffstat (limited to 'kernel.spec')
-rw-r--r--kernel.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel.spec b/kernel.spec
index f54db0217..0b8fe4a41 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -386,6 +386,9 @@ BuildRequires: sparse
%if %{with_perf}
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison flex
BuildRequires: audit-libs-devel
+%ifnarch s390 s390x
+BuildRequires: numactl-devel
+%endif
%endif
%if %{with_tools}
BuildRequires: pciutils-devel gettext ncurses-devel
@@ -1754,7 +1757,7 @@ BuildKernel %make_target %kernel_image
%endif
%global perf_make \
- make -s %{?cross_opts} %{?_smp_mflags} -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
+ make -s %{?cross_opts} %{?_smp_mflags} -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
%if %{with_perf}
# perf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT all