From patchwork Sun Aug 18 10:12:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1148829 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IgDGxm6Y"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46BCXm5f98z9s7T for ; Sun, 18 Aug 2019 20:12:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4004120413; Sun, 18 Aug 2019 10:12:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f8ZelAoovjFI; Sun, 18 Aug 2019 10:12:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 5D10220510; Sun, 18 Aug 2019 10:12:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 29DBB1BF3AA for ; Sun, 18 Aug 2019 10:12:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 263E184543 for ; Sun, 18 Aug 2019 10:12:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QfFiCg7zhcdG for ; Sun, 18 Aug 2019 10:12:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by fraxinus.osuosl.org (Postfix) with ESMTPS id A933783502 for ; Sun, 18 Aug 2019 10:12:15 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id f72so550359wmf.5 for ; Sun, 18 Aug 2019 03:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qYUxNZfoh33lXzWZeaIoorW5bF7GpAf5uaBZfavRwAo=; b=IgDGxm6YpD0CD8CGR4kTGDayOvUK90vsov9Gwp9RnS5buma8/xfK1TuBHsxkZdY/8S i8sQj0bLBCi/6xmEw5sPKnmVkqPx6dAH/rhfYxHQl4FH1evk4eKDQaNMUVYtBX+gcEmO Mqc75Yhbp0CiGUIVwSF/mPmdKHPw9ACpXwgska5sgnfqarbOTX/bcE1WJpSiqtlz2E+Y yhIIJ8KiT55ayUc/rf8sPZTdX/mDZafCz0qaB6zM8NR2WVn3j+YW0vMtMttnOxFiT140 or3EGibckIXUnHZXyKtcl6dXEce4bELc1xCQfW6D7Cznp/oAizNEvl1X1oAIh/cwZ7XV gD+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qYUxNZfoh33lXzWZeaIoorW5bF7GpAf5uaBZfavRwAo=; b=Ik+577gciryH7sXRaktQlhMo7ASIgX1Mg1bkNoMD4me5PiDzu0ZbkLC+fr/yUCXciy eHVtgKqnYLE3ffU0fRMLkSTh4iiDc8fEBf9hOwQYzem6dp/VLW9tesnubdGj0qYyaSAY hg+uSib3S1NU4CZMPozxLOdBvGN0XJDmMAWUv0vewifsk8/57EZnZd2fPGwTzcEcpr+W fp8sLa2mN83djWhced3MuhEJMprUyqxZm4g1o51RtJDlo2H898+0jPzrEYwThHpJzYgG KSs9w3ILpbv4ftkK4lXYSYkX3prWSZVJOm4D3UkTh1JnsGCHn0NXvvm4IeoNgVB2zqii lJ6w== X-Gm-Message-State: APjAAAXu5PVFeqOVxT31mbKxshPV67jOSKnkOF+dgzrLHV9Eh70Z29Js gYGqtR/Ze6wlzleWsWSlhVz4ONZf X-Google-Smtp-Source: APXvYqwuzLqyCTXLi8tfF1sZumdfBJ9DpaqG92kTXmNr1KKJe/5x8yFx8z+mjPOrkJkU7y1tW6c+Hg== X-Received: by 2002:a7b:cb11:: with SMTP id u17mr14757522wmj.17.1566123133633; Sun, 18 Aug 2019 03:12:13 -0700 (PDT) Received: from kali.home (lfbn-ren-1-605-248.w81-53.abo.wanadoo.fr. [81.53.181.248]) by smtp.gmail.com with ESMTPSA id 4sm21022407wro.78.2019.08.18.03.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 03:12:13 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 18 Aug 2019 12:12:26 +0200 Message-Id: <20190818101226.13205-2-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190818101226.13205-1-fontaine.fabrice@gmail.com> References: <20190818101226.13205-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH/next 2/2] package/gauche: add optional mbedtls dependency 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: Hiroshi Kawashima , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" mbedtls support has been added in version 0.9.6 with https://github.com/shirok/Gauche/commit/d449f013fae79639bb300d783962328c6b6b1bd0 So enable it if mbedtls is enabled and always enable embedded axTLS support to keep existing behavior Signed-off-by: Fabrice Fontaine --- package/gauche/gauche.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/gauche/gauche.mk b/package/gauche/gauche.mk index 1f66e28de7..2a30a2b39a 100644 --- a/package/gauche/gauche.mk +++ b/package/gauche/gauche.mk @@ -16,6 +16,16 @@ GAUCHE_AUTORECONF = YES HOST_GAUCHE_CONF_OPTS = --without-zlib GAUCHE_CONF_OPTS = --without-libatomic-ops +# Enable embedded axTLS +GAUCHE_TLS_LIBS = axtls + +ifeq ($(BR2_PACKAGE_MBEDTLS),y) +GAUCHE_TLS_LIBS += mbedtls +GAUCHE_DEPENDENCIES += mbedtls +endif + +GAUCHE_CONF_OPTS += --with-tls="$(GAUCHE_TLS_LIBS)" + ifeq ($(BR2_PACKAGE_ZLIB),y) GAUCHE_CONF_OPTS += --with-zlib=$(STAGING_DIR) GAUCHE_DEPENDENCIES += zlib