Skip config entirely when noarch
This commit is contained in:
parent
3e716334ce
commit
30514337d1
12
kernel.spec
12
kernel.spec
@ -1457,14 +1457,9 @@ done
|
|||||||
rm -f kernel-%{version}-*debug.config
|
rm -f kernel-%{version}-*debug.config
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
arch=%{_target_cpu}
|
# run oldconfig over the config files (except when noarch)
|
||||||
# Koji preps as noarch. Pick the config file for the arch.
|
if [ "%{_target_cpu}" != "noarch" ]; then
|
||||||
if [ "%{_target_cpu}" -eq "noarch" ]; then
|
for i in kernel-*-%{_target_cpu}-*.config
|
||||||
arch=$(uname -p)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# now run oldconfig over the config files
|
|
||||||
for i in kernel-*-$arch-*.config
|
|
||||||
do
|
do
|
||||||
mv $i .config
|
mv $i .config
|
||||||
Arch=`head -1 .config | cut -b 3-`
|
Arch=`head -1 .config | cut -b 3-`
|
||||||
@ -1472,6 +1467,7 @@ do
|
|||||||
echo "# $Arch" > configs/$i
|
echo "# $Arch" > configs/$i
|
||||||
cat .config >> configs/$i
|
cat .config >> configs/$i
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
# end of kernel config
|
# end of kernel config
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user