From patchwork Thu Feb 27 16:30:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1245926 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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.a=rsa-sha256 header.s=20161025 header.b=MOkuukD0; 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 48Syn911Nlz9sVg for ; Fri, 28 Feb 2020 03:29:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D569F2302C; Thu, 27 Feb 2020 16:29:45 +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 vDL5GFQa0r69; Thu, 27 Feb 2020 16:29:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DFC4322EC1; Thu, 27 Feb 2020 16:29:43 +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 81F7F1BF390 for ; Thu, 27 Feb 2020 16:29:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7EAFB86DCA for ; Thu, 27 Feb 2020 16:29:42 +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 Ur7MdEWbjA5A for ; Thu, 27 Feb 2020 16:29:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6595386DB2 for ; Thu, 27 Feb 2020 16:29:41 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id t14so4212611wmi.5 for ; Thu, 27 Feb 2020 08:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1RXMwmgpoSg33M2QgmqubWWKPugdRbXJS7Fl1nAmqyE=; b=MOkuukD0XUAt90/U6b/5yKS0JvrX43WBsZmXZRDWWp2s93jSIeVMSrwWZk9IJAyZ0e uecmGw2XNPA3SHtkjzvKoBK6WKUGzhi4RNqPkCWbcCHCSmozIDwyY3ildmqbITTl86yo nvSaFf5TzVRgvkFACBxozhz54ZaVpxM61s04PQj8fSElfdeXpScsAac1f6FjAz80TMnQ jVfi+Az/i/lvEIQEA3WTEwqjZwlFlss55bQD3Yxb26bzdlIemZHlZWi+o7k/R5XPsIQY N/MeDH8qbHwumc/rXc1nNKF1szooyOLGcLNvc+aJPLMVY7OYOjB4begx2isNPuuu+E4V HRcw== 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:mime-version :content-transfer-encoding; bh=1RXMwmgpoSg33M2QgmqubWWKPugdRbXJS7Fl1nAmqyE=; b=Hdb3gMourTMbhv5fWkD5u62RdJXpkEod8Dj38ZvIZNR6JLFHx+PcCy15g6LjxyLJir WGr8Cy9nM30PPcWiBDHUk5d6hBUjPoBvYsuHqcl+T0HSHBx/pqBqoPUtkSmXVUqGS2RQ +gHeWGvXnm9GSYwvV7e99pftTVCnjKW2KzNFPBtPT34SsIKW7Dc3jLOG+tmIqJy4jLlz zuluKPTXNQRKo8PSPPGkVo+jqEVTs2rL9ZwSCmbAcqDhNVKsSwf6frIQv6ANtcnMyJs/ vN33zxIxUUDnEhtBv2LgEuqAzk1Mu3MU8y8cMzJjJIIQ3mUtpYCzbHmDe07G5IaL6dhD NSxQ== X-Gm-Message-State: APjAAAVrKgkJAGDylLYdB3ibT1ziBSBsg7PS7g5+HQqFM/iuzlPYjw9M 5XOL0Beq15d/2t6XyWazs+Vpa5n3 X-Google-Smtp-Source: APXvYqzyvf48355BoN+pD94VtEkipl/g9Vwy3Cah3tjqQ+gSREmlHWzuXyILEaQGO+rXBHX/rng0OQ== X-Received: by 2002:a05:600c:2283:: with SMTP id 3mr333267wmf.100.1582820978420; Thu, 27 Feb 2020 08:29:38 -0800 (PST) Received: from kali.home (lfbn-ren-1-502-62.w2-10.abo.wanadoo.fr. [2.10.9.62]) by smtp.gmail.com with ESMTPSA id t13sm8300113wrw.19.2020.02.27.08.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 08:29:36 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Thu, 27 Feb 2020 17:30:42 +0100 Message-Id: <20200227163042.3723042-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH/next 1/1] package/bearssl: new package 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: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written in C https://bearssl.org Signed-off-by: Fabrice Fontaine --- DEVELOPERS | 1 + package/Config.in | 1 + package/bearssl/Config.in | 7 +++++++ package/bearssl/bearssl.hash | 3 +++ package/bearssl/bearssl.mk | 39 ++++++++++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 package/bearssl/Config.in create mode 100644 package/bearssl/bearssl.hash create mode 100644 package/bearssl/bearssl.mk diff --git a/DEVELOPERS b/DEVELOPERS index 1700b138d0..16e81cbba7 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -823,6 +823,7 @@ F: package/libmaxminddb/ F: package/openzwave/ N: Fabrice Fontaine +F: package/bearssl/ F: package/boinc/ F: package/cairo/ F: package/daq3/ diff --git a/package/Config.in b/package/Config.in index deb1b32aff..09c5c2dd57 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1276,6 +1276,7 @@ menu "Compression and decompression" endmenu menu "Crypto" + source "package/bearssl/Config.in" source "package/beecrypt/Config.in" source "package/botan/Config.in" source "package/ca-certificates/Config.in" diff --git a/package/bearssl/Config.in b/package/bearssl/Config.in new file mode 100644 index 0000000000..b10ce6025a --- /dev/null +++ b/package/bearssl/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_BEARSSL + bool "bearssl" + help + BearSSL is an implementation of the SSL/TLS protocol + (RFC 5246) written in C. + + https://bearssl.org diff --git a/package/bearssl/bearssl.hash b/package/bearssl/bearssl.hash new file mode 100644 index 0000000000..e000762668 --- /dev/null +++ b/package/bearssl/bearssl.hash @@ -0,0 +1,3 @@ +# Locally computed: +sha256 6705bba1714961b41a728dfc5debbe348d2966c117649392f8c8139efc83ff14 bearssl-0.6.tar.gz +sha256 771bf18c8633ea69ec9b07d2e604c4b99b7bef41b0f5ce6385d24df4448f61ca LICENSE.txt diff --git a/package/bearssl/bearssl.mk b/package/bearssl/bearssl.mk new file mode 100644 index 0000000000..32e41db81e --- /dev/null +++ b/package/bearssl/bearssl.mk @@ -0,0 +1,39 @@ +################################################################################ +# +# bearssl +# +################################################################################ + +BEARSSL_VERSION = 0.6 +BEARSSL_SITE = https://bearssl.org +BEARSSL_LICENSE = MIT +BEARSSL_LICENSE_FILES = LICENSE.txt +BEARSSL_INSTALL_STAGING = YES + +BEARSSL_MAKE_OPTS = \ + $(TARGET_CONFIGURE_OPTS) \ + LDDLL=$(TARGET_CC) + +ifeq ($(BR2_SHARED_LIBS),y) +BEARSSL_TARGETS += dll +else ifeq ($(BR2_STATIC_LIBS),y) +BEARSSL_TARGETS += lib +else ifeq ($(BR2_SHARED_STATIC_LIBS),y) +BEARSSL_TARGETS += dll lib +endif + +define BEARSSL_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(BEARSSL_MAKE_OPTS) -C $(@D) \ + $(BEARSSL_TARGETS) +endef + +define BEARSSL_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 0644 $(@D)/inc/*.h $(STAGING_DIR)/usr/include + $(INSTALL) -D -m 0644 $(@D)/build/lib* $(STAGING_DIR)/usr/lib +endef + +define BEARSSL_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0644 $(@D)/build/lib* $(TARGET_DIR)/usr/lib +endef + +$(eval $(generic-package))