]> code.ossystems Code Review - openembedded-core.git/commit
kernel-devsrc: fix /usr/src/kernel symlink to also work for SDK
authorHenrik Nymann Jensen (HNJE) <hnje@triax.com>
Fri, 29 Mar 2019 19:14:00 +0000 (19:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Apr 2019 13:58:15 +0000 (14:58 +0100)
commit95bc738e7f10d492f5db33fc581e9796e52a9d3f
treeb12c4903a34900b5980ca43fa8658aa5aec63cdf
parent7c7d8ce6fe54e239374a6a04c007b4aa0712ba33
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@triax.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/kernel-devsrc.bb