Skip config entirely when noarch

This commit is contained in:
Dave Jones 2012-04-02 17:54:24 -04:00
parent 3e716334ce
commit 30514337d1

View File

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