summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2015-07-24 13:48:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-31 10:32:38 +0100
commit96433ee2c09d6e7ea03954b51dfa5bb5cbdf279e (patch)
tree1c59a4f406f9fe26668ed5168ffec82a006c8c2a /meta
parent0e9a9842a83a03cb06bfb49e899bee8c31e47ac4 (diff)
downloadpoky-96433ee2c09d6e7ea03954b51dfa5bb5cbdf279e.tar.gz
opkg-utils: use ${bindir} instead of hardcoding /usr/bin
(From OE-Core rev: 48e04a93c357fb494470d2f175e644a6f43a7d63) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils_git.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 2f66632b66..5f518d22d1 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -28,6 +28,10 @@ do_install() {
28 oe_runmake PREFIX=${prefix} DESTDIR=${D} install 28 oe_runmake PREFIX=${prefix} DESTDIR=${D} install
29} 29}
30 30
31do_install_append_class-target() {
32 sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${libdir},g'
33}
34
31PACKAGES =+ "update-alternatives-opkg" 35PACKAGES =+ "update-alternatives-opkg"
32FILES_update-alternatives-opkg = "${bindir}/update-alternatives" 36FILES_update-alternatives-opkg = "${bindir}/update-alternatives"
33RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cworth" 37RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cworth"