diff options
author | Laura Abbott <labbott@redhat.com> | 2019-11-25 17:23:43 -0500 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2019-11-25 17:23:43 -0500 |
commit | 7009ddf5df3fe8e765d8e0743b4051e0df68f5e2 (patch) | |
tree | c7bb1460cbe2645e04b200dce1d82dfca0475119 | |
parent | 786bb94902ac99e68472d9d15462177418976504 (diff) | |
download | kernel-7009ddf5df3fe8e765d8e0743b4051e0df68f5e2.tar.gz kernel-7009ddf5df3fe8e765d8e0743b4051e0df68f5e2.tar.xz kernel-7009ddf5df3fe8e765d8e0743b4051e0df68f5e2.zip |
Clean up stray *.h.s files
The various header testing options (e.g. CONFIG_KERNEL_HEADER_TEST)
leave a lot of stray *.s files around. Make sure these get cleaned
up so they don't end up packaged.
-rw-r--r-- | kernel.spec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec index 8ff38b9b1..ec88bcb56 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1728,6 +1728,9 @@ BuildKernel() { mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/internal mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates + # CONFIG_KERNEL_HEADER_TEST generates some extra files in the process of + # testing so just delete + find . -name *.h.s -delete # first copy everything cp --parents `find -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build |