From a38632b0eaf1d7fdd7a92e14e19e956566f7612b Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 14 Nov 2013 18:23:16 -0800 Subject: [PATCH] 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. --- .../src/third_party/coreos-overlay/eclass/cros-kernel2.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass index b558af14fb..d5db734ca0 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/cros-kernel2.eclass @@ -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 }