mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
binutils: use new update-alternatives
(From OE-Core rev: f0ad3c8ce298ca492938e4ded2263c54213786f6) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cb2a93ee32
commit
76c08cc0d2
@@ -146,12 +146,14 @@ do_install_virtclass-native () {
|
||||
rmdir ${D}/${libdir}64 || :
|
||||
}
|
||||
|
||||
pkg_postinst_${PN}-symlinks () {
|
||||
update-alternatives --install ${bindir}/ar ar ${TARGET_PREFIX}ar 100
|
||||
update-alternatives --install ${bindir}/strings strings ${TARGET_PREFIX}strings 100
|
||||
}
|
||||
inherit update-alternatives
|
||||
|
||||
pkg_prerm_${PN}-symlinks () {
|
||||
update-alternatives --remove ar ${TARGET_PREFIX}ar
|
||||
update-alternatives --remove strings ${TARGET_PREFIX}strings
|
||||
}
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
ALTERNATIVE_${PN}-symlinks = "ar strings"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[ar] = "${bindir}/ar"
|
||||
ALTERNATIVE_TARGET[ar] = "${bindir}/${TARGET_PREFIX}ar"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[strings] = "${bindir}/strings"
|
||||
ALTERNATIVE_TARGET[strings] = "${bindir}/${TARGET_PREFIX}strings"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require binutils.inc
|
||||
|
||||
PR = "r7"
|
||||
PR = "r8"
|
||||
|
||||
LIC_FILES_CHKSUM="\
|
||||
file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
|
||||
|
||||
Reference in New Issue
Block a user