summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Cline <jcline@redhat.com>2020-03-12 11:45:10 -0400
committerJeremy Cline <jcline@redhat.com>2020-03-12 11:45:10 -0400
commitffafed24c5d5a502276f41a778020dfbc4da7615 (patch)
tree4f0fc2892a308c875dcecf043cc1a46f48630e6b
parent2027ad30fb0780518e9113815eea9601f49e1fe8 (diff)
downloadkernel-ffafed24c5d5a502276f41a778020dfbc4da7615.tar.gz
kernel-ffafed24c5d5a502276f41a778020dfbc4da7615.tar.xz
kernel-ffafed24c5d5a502276f41a778020dfbc4da7615.zip
Make HDR_ARCH_LIST conditional on the build target
EL kernels don't target arm, just arm64, so if we're not building for Fedora drop arm. Signed-off-by: Jeremy Cline <jcline@redhat.com>
-rw-r--r--kernel.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index 4353b3c04..90e3b205d 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -2431,7 +2431,11 @@ find $RPM_BUILD_ROOT/usr/include \
%endif
%if %{with_cross_headers}
+%if 0%{?fedora}
HDR_ARCH_LIST='arm arm64 powerpc s390 x86'
+%else
+HDR_ARCH_LIST='arm64 powerpc s390 x86'
+%endif
mkdir -p $RPM_BUILD_ROOT/usr/tmp-headers
for arch in $HDR_ARCH_LIST; do