From 7009ddf5df3fe8e765d8e0743b4051e0df68f5e2 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Mon, 25 Nov 2019 17:23:43 -0500 Subject: [PATCH] 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. --- kernel.spec | 3 +++ 1 file changed, 3 insertions(+) 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