package/kodi: add support for libudev
PATCH 1/2 package/kodi: add support for libudev
Most of the times this is not needed because libdrm & mesa3d already pull in the dependency to udev. Let's add it anyway to make sure that udev is really used and to document that Kodi makes use of udev.
Signed-off-by Bernd Kuhls <[email protected]>
--- package/kodi/kodi.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/kodi/kodi.mk +7 -0
@@ -53,6 +53,13 @@ KODI_CONF_ENV += INCLUDES="-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads LIBS="-lvcos -lvchostif" endif +ifeq ($(BR2_PACKAGE_HAS_LIBUDEV),y) +KODI_DEPENDENCIES += udev +KODI_CONF_OPTS += --enable-udev +else +KODI_CONF_OPTS += --disable-udev +endif + ifeq ($(BR2_PACKAGE_IMX_VPUWRAP),y) KODI_DEPENDENCIES += imx-vpuwrap KODI_CONF_OPTS += --enable-codec=imxvpu
Signature · 1 line
2.8.1
PATCH 2/2 package/kodi: if libudev is available, we don't need libusb
Signed-off-by Bernd Kuhls <[email protected]>
--- package/kodi/Config.in | 3 +++ 1 file changed, 3 insertions(+)
package/kodi/Config.in +3 -0
@@ -216,6 +216,9 @@ config BR2_PACKAGE_KODI_LIBTHEORA config BR2_PACKAGE_KODI_LIBUSB bool "usb" + # https://github.com/xbmc/xbmc/blob/Jarvis/configure.ac#L1554 + # "if libudev is available, we don't need libusb" + depends on !BR2_PACKAGE_HAS_UDEV select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help
Signature · 1 line
2.8.1
PATCH 1/2 package/kodi: add support for libudev
In reply to Bernd KuhlsHello,
Quoted 14 lines · Bernd Kuhls
Most of the times this is not needed because libdrm & mesa3d already pull in the dependency to udev. Let's add it anyway to make sure that udev is really used and to document that Kodi makes use of udev.
Signed-off-by Bernd Kuhls <[email protected]>--- package/kodi/kodi.mk | 7 +++++++ 1 file changed, 7 insertions(+)package/kodi/kodi.mk +0
-0
package/kodi/kodi.mk KODI_CONF_ENV += INCLUDES="-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads · line 56
Quoted 4 lines
package/kodi/kodi.mk +1
-0@@ -53,6 +53,13 @@ KODI_CONF_ENV += INCLUDES="-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads LIBS="-lvcos -lvchostif" endif +ifeq ($(BR2_PACKAGE_HAS_LIBUDEV),y)
HAS_UDEV (same typo as mesa3d) :-)
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com