kernel/linux: Cleanup unneeded files from 'headers_check' and 'headers_install'
authorBryan Hundven <bryanhundven@gmail.com>
Wed Dec 22 22:41:51 2010 +0100 (2010-12-22)
changeset 2228aa02b51ce928
parent 2227 5158aa602e58
child 2229 6884dcb80121
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>
scripts/build/kernel/linux.sh
     1.1 --- a/scripts/build/kernel/linux.sh	Wed Dec 22 00:34:56 2010 +0100
     1.2 +++ b/scripts/build/kernel/linux.sh	Wed Dec 22 22:41:51 2010 +0100
     1.3 @@ -112,8 +112,16 @@
     1.4               INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr"       \
     1.5               ${V_OPT}                                       \
     1.6               headers_check
     1.7 -        find "${CT_SYSROOT_DIR}" -type f -name '.check*' -exec rm {} \;
     1.8      fi
     1.9 +
    1.10 +    # Cleanup
    1.11 +    find "${CT_SYSROOT_DIR}" -type f                        \
    1.12 +                             \(    -name '.install'         \
    1.13 +                                -o -name '..install.cmd'    \
    1.14 +                                -o -name '.check'           \
    1.15 +                                -o -name '..check.cmd'      \
    1.16 +                             \)                             \
    1.17 +                             -exec rm {} \;
    1.18  }
    1.19  
    1.20  # Use custom headers (most probably by using make headers_install in a