summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2021-06-29 14:19:05 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2021-06-29 14:19:05 -0500
commit9d4cb9c3e3d8a11c7a819fa7070c30516ab57672 (patch)
tree1fbc7c09d632cc2ba1b6b575e13e78204a73bcf5
parent1711d9ed45978596b41066e5af3229a3b9edd8f4 (diff)
downloadkernel-9d4cb9c3e3d8a11c7a819fa7070c30516ab57672.tar.gz
kernel-9d4cb9c3e3d8a11c7a819fa7070c30516ab57672.tar.xz
kernel-9d4cb9c3e3d8a11c7a819fa7070c30516ab57672.zip
Don't BuildRequire bpftool if we aren't building an actual kernel
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
-rwxr-xr-xkernel.spec2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index cdda9c057..86dd4fd1f 100755
--- a/kernel.spec
+++ b/kernel.spec
@@ -545,7 +545,9 @@ BuildRequires: net-tools, hostname, bc, elfutils-devel
BuildRequires: dwarves
BuildRequires: python3-devel
BuildRequires: gcc-plugin-devel
+%ifnarch %{nobuildarches}
BuildRequires: bpftool
+%endif
%if %{with_headers}
BuildRequires: rsync
%endif