diff options
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 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 |