fix(cros-kernel2.eclass): Don't install invalid source/build symlinks.

If the kernel sources aren't installed there is no point to installing
these symlinks.
This commit is contained in:
Michael Marineau 2013-11-14 18:23:16 -08:00
parent 13fa480c49
commit a38632b0ea

View File

@ -146,6 +146,9 @@ cros-kernel2_src_install() {
if use source; then
install_kernel_sources
else
# Remove invalid symlinks when source isn't installed
rm -f "${D}/lib/modules/${version}/"{build,source}
fi
}