[Buildroot] [PATCH v4 2/6] package/kodi: Add suboption to control MySQL support

Bernd Kuhls bernd.kuhls at t-online.de
Sat Jul 9 09:11:32 UTC 2016


In a buildroot defconfig with mysql enabled I would like to be able to
build Kodi without mysql support because I do not need it at runtime.

Kodi can store its internal databases not only locally using sqlite but
also on a mysql server, this allows several local Kodi machines to share
the same databases. Because I do only use one Kodi instance I do not
need mysql support and would like to reduce build time when testing/
installing Kodi while not touching other packages.

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
v4: added a note about the motivation for this patch (Thomas)
v3: rebased series, no changes to this patch
v2: rebased series, no changes to this patch

 package/kodi/Config.in | 6 ++++++
 package/kodi/kodi.mk   | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index 3d3ecfd..e57939e 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -174,6 +174,12 @@ config BR2_PACKAGE_KODI_LIBNFS
 comment "nfs support needs a toolchain w/ threads support"
 	depends on !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
 
+config BR2_PACKAGE_KODI_MYSQL
+	bool "mysql"
+	select BR2_PACKAGE_MYSQL
+	help
+	  Enable MySQL support
+
 config BR2_PACKAGE_KODI_RTMPDUMP
 	bool "rtmp"
 	select BR2_PACKAGE_RTMPDUMP
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 8a3b0bf..9d6b966 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -78,7 +78,7 @@ KODI_CONF_OPTS +=  \
 	--disable-vtbdecoder \
 	--enable-optimizations
 
-ifeq ($(BR2_PACKAGE_MYSQL),y)
+ifeq ($(BR2_PACKAGE_KODI_MYSQL),y)
 KODI_CONF_OPTS += --enable-mysql
 KODI_CONF_ENV += ac_cv_path_MYSQL_CONFIG="$(STAGING_DIR)/usr/bin/mysql_config"
 KODI_DEPENDENCIES += mysql
-- 
2.8.1




More information about the buildroot mailing list