From patchwork Thu Oct 18 18:59:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 986165 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=t-online.de Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42bddQ1jMvz9s3Z for ; Fri, 19 Oct 2018 05:59:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A511A87ED3; Thu, 18 Oct 2018 18:59:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rAhbBWeQ2gVZ; Thu, 18 Oct 2018 18:59:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 53A4A87EBA; Thu, 18 Oct 2018 18:59:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B32201BF3D2 for ; Thu, 18 Oct 2018 18:59:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B063786094 for ; Thu, 18 Oct 2018 18:59:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qS5sSpP2G2SS for ; Thu, 18 Oct 2018 18:59:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout12.t-online.de (mailout12.t-online.de [194.25.134.22]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8A71A84EDA for ; Thu, 18 Oct 2018 18:59:31 +0000 (UTC) Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de [172.20.26.243]) by mailout12.t-online.de (Postfix) with SMTP id 3401741D629C; Thu, 18 Oct 2018 20:59:29 +0200 (CEST) Received: from fli4l.lan.fli4l (rI-suEZvrhmlxEQ0XSLAh90Km4dOdytZBOS5ZHy-n8x9AX3127nmQNaehHu3sgcwU2@[91.58.5.108]) by fwd16.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1gDDVx-1kn2eG0; Thu, 18 Oct 2018 20:59:21 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:44502 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.91) (envelope-from ) id 1gDDVw-0002Eq-So; Thu, 18 Oct 2018 20:59:21 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Thu, 18 Oct 2018 20:59:20 +0200 Message-Id: <20181018185920.16430-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-ID: rI-suEZvrhmlxEQ0XSLAh90Km4dOdytZBOS5ZHy-n8x9AX3127nmQNaehHu3sgcwU2 X-TOI-MSGID: 676dacfa-6a06-4f3b-a171-046bb4337429 Subject: [Buildroot] [PATCH 1/1] package/mariadb: add option to disable build of embedded server X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ryan Coe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 Tested-by: Ryan Coe --- package/mariadb/mariadb.mk | 4 ++++ package/mysql/Config.in | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/package/mariadb/mariadb.mk b/package/mariadb/mariadb.mk index 2523aaf062..06d6365fab 100644 --- a/package/mariadb/mariadb.mk +++ b/package/mariadb/mariadb.mk @@ -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 diff --git a/package/mysql/Config.in b/package/mysql/Config.in index 6409c8b806..257a2901a4 100644 --- a/package/mysql/Config.in +++ b/package/mysql/Config.in @@ -54,6 +54,11 @@ config BR2_PACKAGE_MARIADB_SERVER help Install the mariadb server on the target. +config BR2_PACKAGE_MARIADB_SERVER_EMBEDDED + bool "mariadb embedded server" + help + Install the mariadb embedded server on the target. + endif if BR2_PACKAGE_ORACLE_MYSQL