diff options
author | André Draszik <git@andred.net> | 2015-07-24 13:48:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-09 16:37:45 -0700 |
commit | 3ff9e848835e0806138d54649a9c28c6c8d99d0a (patch) | |
tree | 89495b4e2801ea76f8a60df4bbc21d7a5fdb00d3 /meta/recipes-devtools | |
parent | 01a50376df89291d2d350d22c8d9de49604a0933 (diff) | |
download | ast2050-yocto-poky-3ff9e848835e0806138d54649a9c28c6c8d99d0a.zip ast2050-yocto-poky-3ff9e848835e0806138d54649a9c28c6c8d99d0a.tar.gz |
opkg-utils: use ${bindir} instead of hardcoding /usr/bin
(From OE-Core rev: 48e04a93c357fb494470d2f175e644a6f43a7d63)
(From OE-Core rev: 65ea72434fe227374147041b4b5fff19d8a18efb)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 4 |
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 2800a5d..8835527 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb @@ -26,6 +26,10 @@ do_install() { oe_runmake PREFIX=${prefix} DESTDIR=${D} install } +do_install_append_class-target() { + sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${libdir},g' +} + PACKAGES =+ "update-alternatives-opkg" FILES_update-alternatives-opkg = "${bindir}/update-alternatives" RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cworth" |