diff options
author | Laura Abbott <labbott@redhat.com> | 2019-11-06 12:59:50 -0500 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2019-11-13 10:01:45 -0500 |
commit | 897c1bc38db23dcf437f999d834cfb1fa5078d09 (patch) | |
tree | 0899038b5722d3246f4b9493582ec5a601fbdb14 /kernel.spec | |
parent | dba767169462cd40ad78590952674c41e221f41e (diff) | |
download | kernel-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.
Diffstat (limited to 'kernel.spec')
-rw-r--r-- | kernel.spec | 9 |
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 |