summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@opensourcefoundries.com>2018-04-17 19:47:29 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-19 14:44:47 +0100
commit3c9ab895f937a7e232780c7cb697e102b5f9aaa8 (patch)
tree8bcf54c10439104ede117207ae727a7bd2661f38 /meta/recipes-bsp
parent08a5cda85594fca8b352841a26131bfac39c8417 (diff)
downloadopenembedded-core-contrib-3c9ab895f937a7e232780c7cb697e102b5f9aaa8.tar.gz
openembedded-core-contrib-3c9ab895f937a7e232780c7cb697e102b5f9aaa8.tar.bz2
openembedded-core-contrib-3c9ab895f937a7e232780c7cb697e102b5f9aaa8.zip
usbutils: use update-alternatives for lsusb
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> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/usbutils/usbutils_009.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-bsp/usbutils/usbutils_009.bb b/meta/recipes-bsp/usbutils/usbutils_009.bb
index 88c24bd22a..3ffc0dd97a 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"