use -delete on find commands where possible rather than forking out to xargs/rm
This commit is contained in:
parent
b80a79ec07
commit
049b0f66f6
|
@ -1323,7 +1323,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
|
||||
|
@ -1714,7 +1714,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
|
||||
|
||||
|
@ -1724,7 +1724,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
|
||||
|
|
Loading…
Reference in New Issue