From: Paul Barker Date: Tue, 5 May 2015 17:33:01 +0000 (+0100) Subject: kernel.bbclass: Complete fix for modules symlink X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fdylan;p=openembedded-core.git kernel.bbclass: Complete fix for modules symlink The fix backported in commit aa9fc551 of oe-core does not completely fix the issue (Yocto #4595) as intended. The modules symlink is still created in the working directory instead of in the deploy directory. To fix this, we just need to use an absolute path to ${DEPLOYDIR} when creating the symlink. Signed-off-by: Paul Barker Signed-off-by: Richard Purdie --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 324e8120b9..67b662ac08 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -372,7 +372,7 @@ kernel_do_deploy() { if [ ${MODULE_TARBALL_DEPLOY} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then mkdir -p ${D}/lib tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib - ln -sf ${MODULE_TARBALL_BASE_NAME} ${MODULE_TARBALL_SYMLINK_NAME} + ln -sf ${MODULE_TARBALL_BASE_NAME} ${DEPLOYDIR}/${MODULE_TARBALL_SYMLINK_NAME} fi cd ${DEPLOYDIR}