[Buildroot] [git commit branch/2020.11.x] package/kodi: honour the libusb option even when disabled

Peter Korsgaard peter at korsgaard.com
Mon Mar 29 19:42:42 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=94eeb975101231798315ea6f7ca733244d7030c3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.11.x

Make sure libusb support is properly disabled even if the libusb
package is enabled, and in case it gets built before Kodi.

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 0e1acc6e36b087c1008981e7bccf4113bfa1751d)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/kodi/kodi.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 80a8d4e6bf..1f068d3b59 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -211,6 +211,8 @@ KODI_CONF_OPTS += -DENABLE_UDEV=OFF
 ifeq ($(BR2_PACKAGE_KODI_LIBUSB),y)
 KODI_CONF_OPTS += -DENABLE_LIBUSB=ON
 KODI_DEPENDENCIES += libusb-compat
+else
+KODI_CONF_OPTS += -DENABLE_LIBUSB=OFF
 endif
 endif
 


More information about the buildroot mailing list