summaryrefslogtreecommitdiffstats
path: root/package/kodi
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-07-11 20:09:02 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-17 14:32:01 +0200
commit453657df6b36b596eea673056cd909060a4b0b0a (patch)
treef86a5d50a9d57d2274aa3cdbb5eb2b0eba2a92e5 /package/kodi
parentaab1690637755d638101ddd490a858f4a9e447c4 (diff)
downloadbuildroot-453657df6b36b596eea673056cd909060a4b0b0a.tar.gz
buildroot-453657df6b36b596eea673056cd909060a4b0b0a.zip
package/kodi: Add suboption to control MySQL support
In a Buildroot configuration with mysql enabled it might be useful to be able to build Kodi without mysql support because Kodi may 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. When using only one Kodi instance, mysql support is not needed, and not building mysql support helps reducing build time. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/kodi')
-rw-r--r--package/kodi/Config.in6
-rw-r--r--package/kodi/kodi.mk2
2 files changed, 7 insertions, 1 deletions
diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index afb834ecd7..f388a724c1 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_NONFREE
bool "nonfree components"
help
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 9f21bf2988..e0361dae78 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -77,7 +77,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
OpenPOWER on IntegriCloud