]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Complete fix for modules symlink dylan
authorPaul Barker <paul.barker@commagility.com>
Tue, 5 May 2015 17:33:01 +0000 (18:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 May 2015 13:49:37 +0000 (14:49 +0100)
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 <paul.barker@commagility.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 324e8120b926a3d9c80b5cec146c8cda906a9eaa..67b662ac082ee9881a2af1278efd712b78990976 100644 (file)
@@ -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}