uml-utilities: Use update alternatives for tunctl

This can then live along with toybox

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2020-08-31 08:32:14 -07:00
parent 0bfce1c8eb
commit bfcf2faba7
@@ -15,6 +15,8 @@ PR = "r1"
S = "${WORKDIR}/tools"
inherit update-alternatives
do_compile() {
oe_runmake
}
@@ -25,3 +27,6 @@ do_install() {
FILES_${PN} += "${exec_prefix}${nonarch_base_libdir}"
FILES_${PN}-dbg += "${exec_prefix}${nonarch_base_libdir}/uml/.debug"
ALTERNATIVE_${PN} = "tunctl"
ALTERNATIVE_LINK_NAME[tunctl] = "${bindir}/tunctl"