mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
opkg: use new update-alternatives
(From OE-Core rev: fc9c2fd512e592806b10d0273ca490c90072ff3f) 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
6d76d521a1
commit
8a4a7a2619
@@ -11,7 +11,7 @@ DEPENDS_virtclass-native = "curl-native"
|
||||
DEPENDS_virtclass-nativesdk = "curl-nativesdk"
|
||||
|
||||
PE = "1"
|
||||
INC_PR = "r9"
|
||||
INC_PR = "r10"
|
||||
|
||||
FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/opkg"
|
||||
|
||||
@@ -64,15 +64,14 @@ rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
|
||||
" > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
|
||||
chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
|
||||
fi
|
||||
|
||||
update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100
|
||||
}
|
||||
|
||||
pkg_postrm_${PN} () {
|
||||
#!/bin/sh
|
||||
update-alternatives --remove opkg ${bindir}/opkg-cl
|
||||
}
|
||||
inherit update-alternatives
|
||||
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
ALTERNATIVE_${PN} = "opkg"
|
||||
ALTERNATIVE_LINK_NAME[opkg] = "${bindir}/opkg"
|
||||
ALTERNATIVE_TARGET[opkg] = "${bindir}/opkg-cl"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user