diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-install.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 08f631b5e865..8acf1ad1bc05 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -418,6 +418,12 @@ kernel-install_pkg_preinst() { eerror "Please verify that you are applying the correct patches." die "Kernel release mismatch (${release} instead of ${PV}*)" fi + if [[ -L ${EROOT}/lib && ${EROOT}/lib -ef ${EROOT}/usr/lib ]]; then + # Adjust symlinks for merged-usr. + rm "${ED}/lib/modules/${ver}"/{build,source} || die + dosym "../../../src/linux-${ver}" "/usr/lib/modules/${ver}/build" + dosym "../../../src/linux-${ver}" "/usr/lib/modules/${ver}/source" + fi } # @FUNCTION: kernel-install_install_all |