aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-30 13:52:31 -0700
committerKhem Raj <raj.khem@gmail.com>2020-08-31 08:30:19 -0700
commite96331850c0dea7e52d4db0338bb0e2dc767c757 (patch)
treeb3ea48ae12a0c411ba834c43d960ef56482b1538 /meta-oe/recipes-support/libusbgx/libusbgx_git.bb
parent7de0bbbbaa5064dbb72db769060a7a93ccf2d654 (diff)
downloadmeta-openembedded-contrib-e96331850c0dea7e52d4db0338bb0e2dc767c757.tar.gz
libusbgx: Use update-alternatives
gadget-acm-ecm show-gadgets are also provided by older libusbg recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libusbgx/libusbgx_git.bb')
-rw-r--r--meta-oe/recipes-support/libusbgx/libusbgx_git.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libusbgx/libusbgx_git.bb b/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
index d73ca61060..48fc911434 100644
--- a/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
+++ b/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
DEPENDS = "libconfig"
-inherit autotools pkgconfig systemd update-rc.d
+inherit autotools pkgconfig systemd update-rc.d update-alternatives
PV = "0.2.0+git${SRCPV}"
SRCREV = "45c14ef4d5d7ced0fbf984208de44ced6d5ed898"
@@ -38,3 +38,8 @@ do_install_append() {
}
RDEPENDS_${PN} += "libusbgx-config"
+
+ALTERNATIVE_PRIORITY = "90"
+ALTERNATIVE_${PN} = "gadget-acm-ecm show-gadgets"
+ALTERNATIVE_LINK_NAME[gadget-acm-ecm] = "${bindir}/gadget-acm-ecm"
+ALTERNATIVE_LINK_NAME[show-gadgets] = "${bindir}/show-gadgets"