Skip to contentSkip to conversation

package/kodi: add support for libudev

PATCH New Bernd Kuhls 2 participants 3 messages Jul 10, 2016 – Jul 11, 2016

lore
Share & tools
lore
#0 lore raw

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.

---
 package/kodi/kodi.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/kodi/kodi.mk +7 -0
index 90c50c3..21a0d53 100644
@@ -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
#1 lore raw

PATCH 2/2 package/kodi: if libudev is available, we don't need libusb

---
 package/kodi/Config.in | 3 +++
 1 file changed, 3 insertions(+)
package/kodi/Config.in +3 -0
index 3d3ecfd..6eff7c8 100644
@@ -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
#2 lore raw

PATCH 1/2 package/kodi: add support for libudev

In reply to Bernd Kuhls

Hello,

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.

---
 package/kodi/kodi.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/kodi/kodi.mk +0 -0
index 90c50c3..21a0d53 100644

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