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>
This commit is contained in:
Jeremy Cline 2020-03-12 11:45:10 -04:00
parent 2027ad30fb
commit ffafed24c5
1 changed files with 4 additions and 0 deletions

View File

@ -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