--- branches/magellan-next/include/kernel.sminc 2012/01/10 14:13:20 9745 +++ branches/magellan-next/include/kernel.sminc 2012/01/10 14:24:51 9746 @@ -276,6 +276,9 @@ { cd ${SRCDIR} make ARCH=${ARCH/i*86/x86} INSTALL_HDR_PATH=${BINDIR}/usr headers_install || die + + # clean-up unnecessary files + find ${BINDIR} -name .install -or -name ..install.cmd | xargs --no-run-if-empty rm -f } kernel_sources_src_install()