From 0b7fdcf2a3714570eccc0d974265320194d50922 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 11 Mar 2021 14:25:05 +0100 Subject: kernel-install.eclass: Update symlink if target has no sources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- eclass/kernel-install.eclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eclass') diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 107a526c328f..860105feb8b8 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -89,6 +89,9 @@ kernel-install_can_update_symlink() { # if the symlink does not exist or is broken, update [[ ! -e ${target} ]] && return 0 + # if the target does not seem to contain kernel sources + # (i.e. is probably a leftover directory), update + [[ ! -e ${target}/Makefile ]] && return 0 local symlink_target=$(readlink "${target}") # the symlink target should start with the same basename as target -- cgit v1.2.3-65-gdbad