usbutils: lsusb.py is for python 3.x only

usbutils version 010 converted the lsusb.py script to Python 3. Keep the
lsusb.py script on target only when Python 3.x is enabled.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Baruch Siach 2018-05-29 19:12:14 +03:00 committed by Peter Korsgaard
parent fd0b79dba9
commit 78b9f9c393

View File

@ -16,8 +16,8 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
USBUTILS_DEPENDENCIES += busybox
endif
# Nice lsusb.py script only if there's python
ifeq ($(BR2_PACKAGE_PYTHON),)
# Nice lsusb.py script only if there's python 3.x
ifeq ($(BR2_PACKAGE_PYTHON3),)
define USBUTILS_REMOVE_PYTHON
rm -f $(TARGET_DIR)/usr/bin/lsusb.py
endef