[oe-commits] [openembedded-core] 04/05: kernel-devsrc: fix /usr/src/kernel symlink to also work for SDK

git at git.openembedded.org git at git.openembedded.org
Mon Apr 1 13:58:47 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 95bc738e7f10d492f5db33fc581e9796e52a9d3f
Author: Henrik Nymann Jensen (HNJE) <hnje at triax.com>
AuthorDate: Fri Mar 29 19:14:00 2019 +0000

    kernel-devsrc: fix /usr/src/kernel symlink to also work for SDK
    
    If kernel-devsrc is used in a SDK context, the symlink from usr/src/kernel
    points to an absolute path '/lib/modules/${KERNEL_VERSION}/build',
    which ends up pointing to the local machine's build directory.
    
    To address this issue change the symlink to be realtive to
    ${D}/lib/modules/${KERNEL_VERSION}/build.
    
    Signed-off-by: Henrik Nymann Jensen <hnje at triax.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 6daeea4..69a8eae 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -48,7 +48,7 @@ do_install() {
     mkdir -p ${D}/usr/src
     (
 	cd ${D}/usr/src
-	ln -s ${KERNEL_BUILD_ROOT}${KERNEL_VERSION}/source kernel
+	lnr ${D}${KERNEL_BUILD_ROOT}${KERNEL_VERSION}/source kernel
     )
 
     # for on target purposes, we unify build and source

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list