diff options
author | Martin Hundebøll <mnhu@prevas.dk> | 2018-02-05 13:25:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-16 18:05:39 +0000 |
commit | d0bad10a13be5c3d0c67c896995ca3f6456decd3 (patch) | |
tree | 0d747a2f77e98f8eeb4900c1bf2184fa67da7366 /meta/recipes-bsp/usbutils | |
parent | 74891289d8f2571c8e9ca532902aaf77de87847f (diff) | |
download | poky-d0bad10a13be5c3d0c67c896995ca3f6456decd3.tar.gz |
usbutils: Split out lsusb.py
The pretty-printing "lsusb.py" script shipped by usbutils is currently
useless, as it doesn't runtime depend on python, and has unversioned
python in the shebang.
Avoid adding a python dependency to current configurations with usbutils
buy splitting lsusb.py into a usbutils-python package, and make it
runtime depend on python3-core.
Make the script usable by replacing the shebang with a direct call to
${bindir}/python3.
(From OE-Core rev: 42af9fedd31ecf5c6210d2f85f20540f85da59f4)
Signed-off-by: Martin Hundebøll <mnhu@prevas.dk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/usbutils')
-rw-r--r-- | meta/recipes-bsp/usbutils/usbutils_009.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-bsp/usbutils/usbutils_009.bb b/meta/recipes-bsp/usbutils/usbutils_009.bb index 30522fd0f1..a7cbe45406 100644 --- a/meta/recipes-bsp/usbutils/usbutils_009.bb +++ b/meta/recipes-bsp/usbutils/usbutils_009.bb | |||
@@ -22,3 +22,11 @@ FILES_${PN}-dev += "${datadir}/pkgconfig" | |||
22 | 22 | ||
23 | RRECOMMENDS_${PN} = "udev-hwdb" | 23 | RRECOMMENDS_${PN} = "udev-hwdb" |
24 | RDEPENDS_${PN}-ptest = "libboost-system libboost-thread" | 24 | RDEPENDS_${PN}-ptest = "libboost-system libboost-thread" |
25 | |||
26 | PACKAGE_BEFORE_PN =+ "${PN}-python" | ||
27 | FILES_${PN}-python += "${bindir}/lsusb.py" | ||
28 | RDEPENDS_${PN}-python = "python3-core" | ||
29 | |||
30 | do_install_append() { | ||
31 | sed -i -E '1s,#!.+python,#!${bindir}/python3,' ${D}${bindir}/lsusb.py | ||
32 | } | ||