package/mariadb: add option to disable build of embedded server
authorBernd Kuhls <bernd.kuhls@t-online.de>
Thu, 18 Oct 2018 18:59:20 +0000 (20:59 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 22 Oct 2018 08:43:59 +0000 (10:43 +0200)
Size of output/target/usr:

with embedded: 1,7G
without embedded: 648M

This config option saves space on the target if the embedded server
is not used by any other package:

https://mariadb.com/kb/en/library/embedded-mariadb-interface/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Tested-by: Ryan Coe <bluemrp9@gmail.com>
[Peter: make Config.in option depend on _MARIADB_SERVER]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mariadb/mariadb.mk
package/mysql/Config.in

index 2523aaf062adc8c0ea1c4b7327df1b42b058b823..06d6365fab743151191d79b1ca199b1cb4cb2f48 100644 (file)
@@ -56,8 +56,12 @@ MARIADB_CONF_OPTS += -DCMAKE_CROSSCOMPILING=1
 MARIADB_CONF_OPTS += -DENABLE_DTRACE=0
 
 ifeq ($(BR2_PACKAGE_MARIADB_SERVER),y)
+ifeq ($(BR2_PACKAGE_MARIADB_SERVER_EMBEDDED),y)
 MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=ON
 else
+MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=OFF
+endif
+else
 MARIADB_CONF_OPTS += -DWITHOUT_SERVER=ON
 endif
 
index 6409c8b806c48c707d0393a2ee395a6fe1ef527f..f7f7f4b8eb41f719cb6d53f80458f35d8fc3dfb0 100644 (file)
@@ -54,6 +54,12 @@ config BR2_PACKAGE_MARIADB_SERVER
        help
          Install the mariadb server on the target.
 
+config BR2_PACKAGE_MARIADB_SERVER_EMBEDDED
+       depends on BR2_PACKAGE_MARIADB_SERVER
+       bool "mariadb embedded server"
+       help
+         Install the mariadb embedded server on the target.
+
 endif
 
 if BR2_PACKAGE_ORACLE_MYSQL