Only build BPF code on x86_64 and i686

Currently (v4l-utils version 1.16.2), trying to build the BPF
decoders failed for non-x86 archs. While this is not solved,
only enable building it on x86, as this is an optional feature
anyway.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Mauro Carvalho Chehab 2018-11-22 14:13:03 -02:00
parent 545bd55603
commit f86cf18b6b

View File

@ -16,8 +16,19 @@ BuildRequires: kernel-headers
BuildRequires: libjpeg-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: systemd-devel
# For BPF decoders
# BPF decoder dependencies
%ifarch i686 x86_64
%define with_bpf 1
%else
%define with_bpf 0
%endif
%if %{with_bpf}
BuildRequires: elfutils-libelf-devel clang
%endif
# For /lib/udev/rules.d ownership
Requires: udev
Requires: libv4l%{?_isa} = %{version}-%{release}