mirror of
https://git.yoctoproject.org/poky
synced 2026-03-15 19:59:40 +01:00
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.
(From OE-Core rev: 95bc738e7f10d492f5db33fc581e9796e52a9d3f)
Signed-off-by: Henrik Nymann Jensen <hnje@triax.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a4031efc0a
commit
e3b22f3849
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user