summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-11-10 11:12:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-10 19:27:29 +0000
commitc0583c6bfc13c0f3031b8bc87407485b3fe9856f (patch)
tree3edadc5eeef4a38998b28c29c30e39738dcc01f3 /meta/recipes-kernel
parent974df2f61c9c7fbdb79f825f1b8d70299b72fa2c (diff)
downloadpoky-c0583c6bfc13c0f3031b8bc87407485b3fe9856f.tar.gz
meta: use ln -rs instead of lnr
lnr is a script in oe-core that creates relative symlinks, with the same behaviour as `ln --relative --symlink`. It was added back in 2014[1] as not all of the supported host distributions at the time shipped coreutils 8.16, the first release with --relative. However the oldest coreutils release in the supported distributions is now 8.22 in CentOS 7, so lnr can be deprecated and users switched to ln. [1] 6ae3b85eaffd1b0b6914422e8de7c1230723157d (From OE-Core rev: 1ca455a98de4c713f58df0a537d4c982d256cd68) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/kmod/kmod_git.bb4
-rw-r--r--meta/recipes-kernel/linux/kernel-devsrc.bb2
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_git.bb
index eb5d176ded..9bd66de430 100644
--- a/meta/recipes-kernel/kmod/kmod_git.bb
+++ b/meta/recipes-kernel/kmod/kmod_git.bb
@@ -19,9 +19,9 @@ do_install:append () {
19 install -dm755 ${D}${base_bindir} 19 install -dm755 ${D}${base_bindir}
20 install -dm755 ${D}${base_sbindir} 20 install -dm755 ${D}${base_sbindir}
21 # add symlinks to kmod 21 # add symlinks to kmod
22 lnr ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod 22 ln -rs ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod
23 for tool in insmod rmmod depmod modinfo modprobe; do 23 for tool in insmod rmmod depmod modinfo modprobe; do
24 lnr ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool} 24 ln -rs ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool}
25 done 25 done
26 # configuration directories 26 # configuration directories
27 install -dm755 ${D}${nonarch_base_libdir}/depmod.d 27 install -dm755 ${D}${nonarch_base_libdir}/depmod.d
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index f22fac5bd6..4ceb35f0d2 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -48,7 +48,7 @@ do_install() {
48 mkdir -p ${D}/usr/src 48 mkdir -p ${D}/usr/src
49 ( 49 (
50 cd ${D}/usr/src 50 cd ${D}/usr/src
51 lnr ${D}${KERNEL_BUILD_ROOT}${KERNEL_VERSION}/source kernel 51 ln -rs ${D}${KERNEL_BUILD_ROOT}${KERNEL_VERSION}/source kernel
52 ) 52 )
53 53
54 # for on target purposes, we unify build and source 54 # for on target purposes, we unify build and source