summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2019-11-06 12:59:50 -0500
committerLaura Abbott <labbott@redhat.com>2019-11-13 10:01:45 -0500
commit897c1bc38db23dcf437f999d834cfb1fa5078d09 (patch)
tree0899038b5722d3246f4b9493582ec5a601fbdb14
parentdba767169462cd40ad78590952674c41e221f41e (diff)
downloadkernel-897c1bc38db23dcf437f999d834cfb1fa5078d09.tar.gz
kernel-897c1bc38db23dcf437f999d834cfb1fa5078d09.tar.xz
kernel-897c1bc38db23dcf437f999d834cfb1fa5078d09.zip
Increase the scope of the nobuildarches
We don't need to do some config work if we're not doing an arch build.
-rw-r--r--kernel.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/kernel.spec b/kernel.spec
index 101240c54..83064524d 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1368,6 +1368,12 @@ pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p -n \
Documentation \
scripts/gen_compile_commands.py
+# only deal with configs if we are going to build for the arch
+%ifnarch %nobuildarches
+
+if [ -L configs ]; then
+ rm -f configs
+fi
# Deal with configs stuff
mkdir configs
cd configs
@@ -1390,9 +1396,6 @@ do
done
%endif
-# only deal with configs if we are going to build for the arch
-%ifnarch %nobuildarches
-
%if !%{debugbuildsenabled}
rm -f kernel-%{version}-*debug.config
%endif