diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-12-22 22:41:51 +0100 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2010-12-22 22:41:51 +0100 |
commit | 908f4aeab96bf6cac6866dbbbf1516a77f2ef038 (patch) | |
tree | 3ae733bca702109a00881b8e566f0880e9eec238 /scripts/build/kernel | |
parent | 6ef2caf1d3c16caf0f6635285ba3747a09b7654b (diff) | |
download | crosstool-ng-908f4aeab96bf6cac6866dbbbf1516a77f2ef038.tar.gz crosstool-ng-908f4aeab96bf6cac6866dbbbf1516a77f2ef038.tar.bz2 crosstool-ng-908f4aeab96bf6cac6866dbbbf1516a77f2ef038.zip |
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>
Diffstat (limited to 'scripts/build/kernel')
-rw-r--r-- | scripts/build/kernel/linux.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh index a6898d86..4df25b7c 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 |