From 908f4aeab96bf6cac6866dbbbf1516a77f2ef038 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 22 Dec 2010 22:41:51 +0100 Subject: kernel/linux: Cleanup unneeded files from 'headers_check' and 'headers_install' headers_install makes .install and ..install.cmd files. headers_check makes .check and ..check.cmd files. Remove these files uncoditionaly after installing (and checking) header files into the sys-root. Signed-off-by: Bryan Hundven [Yann E. MORIN: reformat the patch, move hunk out of headers_check conditional] Signed-off-by: "Yann E. MORIN" diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh index a6898d8..4df25b7 100644 --- a/scripts/build/kernel/linux.sh +++ b/scripts/build/kernel/linux.sh @@ -112,8 +112,16 @@ do_kernel_install() { INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \ ${V_OPT} \ headers_check - find "${CT_SYSROOT_DIR}" -type f -name '.check*' -exec rm {} \; fi + + # Cleanup + find "${CT_SYSROOT_DIR}" -type f \ + \( -name '.install' \ + -o -name '..install.cmd' \ + -o -name '.check' \ + -o -name '..check.cmd' \ + \) \ + -exec rm {} \; } # Use custom headers (most probably by using make headers_install in a -- cgit v0.10.2-6-g49f6