summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-12-22 21:41:51 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2010-12-22 21:41:51 (GMT)
commit908f4aeab96bf6cac6866dbbbf1516a77f2ef038 (patch)
tree3ae733bca702109a00881b8e566f0880e9eec238
parent6ef2caf1d3c16caf0f6635285ba3747a09b7654b (diff)
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 <bryanhundven@gmail.com> [Yann E. MORIN: reformat the patch, move hunk out of headers_check conditional] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r--scripts/build/kernel/linux.sh10
1 files changed, 9 insertions, 1 deletions
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