Skip to contentSkip to conversation

usbutils: use update-alternatives for lsusb

PATCH New Ricardo Salveti 1 participant 1 message Apr 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usbutils: use update-alternatives for lsusb

lsusb can also be provided by busybox (CONFIG_LSUSB), so use update-alternatives to handle the conflict.

---
 meta/recipes-bsp/usbutils/usbutils_009.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-bsp/usbutils/usbutils_009.bb +4 -1
index 88c24bd..3ffc0dd 100644
@@ -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"
 
Signature · 1 line
2.7.4