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

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


commit: https://git.buildroot.net/buildroot/commit/?id=d1b15668f6f19952d4b6e7d8bc516284241bcafe
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.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 3f22db48a3..058e75a986 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -210,6 +210,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