diff options
author | Joshua Lock <joshua.lock@collabora.co.uk> | 2015-09-14 16:41:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-18 09:05:22 +0100 |
commit | 17f5a5a415b80daa033266e151630f0fcc68eda1 (patch) | |
tree | ff3b235dd74cd705151a45038dfc807bf3f54aad /meta/recipes-kernel/kmod/kmod_git.bb | |
parent | e2cfe93035fd2f793f0271e4aef00ec4a71a4afc (diff) | |
download | poky-17f5a5a415b80daa033266e151630f0fcc68eda1.tar.gz |
kmod: fix link creation when base_bindir != /bin
If base_bindir is not a direct child of / the link creation in
do_install_append creates incorrect relative links.
Instead pass a full path to the link source too the lnr script
to create a relative link.
(From OE-Core rev: dc184ace9d72a2d4f8eeec831942663cd3b1fd47)
Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod_git.bb')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod_git.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_git.bb index ba4d85eda4..e0bb95c8f6 100644 --- a/meta/recipes-kernel/kmod/kmod_git.bb +++ b/meta/recipes-kernel/kmod/kmod_git.bb | |||
@@ -21,9 +21,9 @@ do_install_append () { | |||
21 | install -dm755 ${D}${base_bindir} | 21 | install -dm755 ${D}${base_bindir} |
22 | install -dm755 ${D}${base_sbindir} | 22 | install -dm755 ${D}${base_sbindir} |
23 | # add symlinks to kmod | 23 | # add symlinks to kmod |
24 | ln -s ..${base_bindir}/kmod ${D}${base_bindir}/lsmod | 24 | lnr ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod |
25 | for tool in insmod rmmod depmod modinfo modprobe; do | 25 | for tool in insmod rmmod depmod modinfo modprobe; do |
26 | ln -s ..${base_bindir}/kmod ${D}${base_sbindir}/${tool} | 26 | lnr ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool} |
27 | done | 27 | done |
28 | # configuration directories | 28 | # configuration directories |
29 | install -dm755 ${D}${base_libdir}/depmod.d | 29 | install -dm755 ${D}${base_libdir}/depmod.d |