summaryrefslogtreecommitdiffstats
path: root/kernel.spec
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@gmail.com>2018-10-14 10:21:30 +0100
committerPeter Robinson <pbrobinson@gmail.com>2018-10-14 10:21:30 +0100
commitfae554d6cb8af0c3febe789595c3af2e73b7e1f5 (patch)
tree01b7fe80e330efbe0c2b3f9dd2e78aa331ba983b /kernel.spec
parentf0d49a4dcb543d6d5a818cc5ad617554a96435cd (diff)
downloadkernel-fae554d6cb8af0c3febe789595c3af2e73b7e1f5.tar.gz
kernel-fae554d6cb8af0c3febe789595c3af2e73b7e1f5.tar.xz
kernel-fae554d6cb8af0c3febe789595c3af2e73b7e1f5.zip
use -delete on find commands where possible rather than forking out to xargs/rm
Diffstat (limited to 'kernel.spec')
-rw-r--r--kernel.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel.spec b/kernel.spec
index a3d87d7b4..03647bab5 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1274,7 +1274,7 @@ BuildKernel() {
%ifarch %{arm} aarch64
%{make} %{?make_opts} ARCH=$Arch dtbs dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
cp -r $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer $RPM_BUILD_ROOT/lib/modules/$KernelVer/dtb
- find arch/$Arch/boot/dts -name '*.dtb' -type f | xargs rm -f
+ find arch/$Arch/boot/dts -name '*.dtb' -type f -delete
%endif
# Start installing the results
@@ -1665,7 +1665,7 @@ make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
find $RPM_BUILD_ROOT/usr/include \
\( -name .install -o -name .check -o \
- -name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
+ -name ..install.cmd -o -name ..check.cmd \) -delete
%endif
@@ -1675,7 +1675,7 @@ make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr/tmp-headers headers_in
find $RPM_BUILD_ROOT/usr/tmp-headers/include \
\( -name .install -o -name .check -o \
- -name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
+ -name ..install.cmd -o -name ..check.cmd \) -delete
# Copy all the architectures we care about to their respective asm directories
for arch in arm arm64 powerpc s390 x86 ; do