* [PATCH] usbutils: use update-alternatives for lsusb
@ 2018-04-17 22:47 Ricardo Salveti
0 siblings, 0 replies; only message in thread
From: Ricardo Salveti @ 2018-04-17 22:47 UTC (permalink / raw)
To: openembedded-core; +Cc: alexander.kanavin
lsusb can also be provided by busybox (CONFIG_LSUSB), so use
update-alternatives to handle the conflict.
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
---
meta/recipes-bsp/usbutils/usbutils_009.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-bsp/usbutils/usbutils_009.bb b/meta/recipes-bsp/usbutils/usbutils_009.bb
index 88c24bd..3ffc0dd 100644
--- a/meta/recipes-bsp/usbutils/usbutils_009.bb
+++ b/meta/recipes-bsp/usbutils/usbutils_009.bb
@@ -15,7 +15,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \
SRC_URI[md5sum] = "b5dbc498b2eb5058f7a57fc6532d0aad"
SRC_URI[sha256sum] = "e73543293a17c7803994eac97a49e58b377e08e6299ba11aad09794b91340e8b"
-inherit autotools pkgconfig distro_features_check
+inherit autotools pkgconfig distro_features_check update-alternatives
+
+ALTERNATIVE_${PN} = "lsusb"
+ALTERNATIVE_PRIORITY = "100"
FILES_${PN}-dev += "${datadir}/pkgconfig"
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-17 22:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-17 22:47 [PATCH] usbutils: use update-alternatives for lsusb Ricardo Salveti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox