# HG changeset patch # User Bryan Hundven # Date 1293054111 -3600 # Node ID aa02b51ce92806ecd5b756dfef4a187ee7b9b8ef # Parent 5158aa602e580e650dbd3e7ddd6586376ad57ba9 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 -r 5158aa602e58 -r aa02b51ce928 scripts/build/kernel/linux.sh --- a/scripts/build/kernel/linux.sh Wed Dec 22 00:34:56 2010 +0100 +++ b/scripts/build/kernel/linux.sh Wed Dec 22 22:41:51 2010 +0100 @@ -112,8 +112,16 @@ 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