From patchwork Sun Nov 18 21:19:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: robert rose X-Patchwork-Id: 999559 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="YbBeWW6k"; 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 42ylH73Qp5z9s7T for ; Mon, 19 Nov 2018 08:20:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 73CDB226C9; Sun, 18 Nov 2018 21:20:00 +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 rEwI5nQCWCie; Sun, 18 Nov 2018 21:19:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C1F102227A; Sun, 18 Nov 2018 21:19:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6D9D11C2BEC for ; Sun, 18 Nov 2018 21:19:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6AEEA86200 for ; Sun, 18 Nov 2018 21:19:59 +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 RwBZ8R8kmtYE for ; Sun, 18 Nov 2018 21:19:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id E01F185E29 for ; Sun, 18 Nov 2018 21:19:55 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id f12-v6so13580945plo.1 for ; Sun, 18 Nov 2018 13:19:55 -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=l86Ei1fkDbXEuqc661ZOTKQYy3IWYysTPVwWnpyJJuY=; b=YbBeWW6kez/pTmpMFjz1PQPffOrwptHsBiF5B2XdQ/Kn+KJ8lCF3HkNe3Pn+Io89nt jJdLlwzHNejamH1u9e4UcWTuQcqtVLj4/7sGi1BKbQ8WNon8rjXxNa4bVvS71KoWoZuq Iyhm+GZ1uALsHo3oPRGGuEzgVI5easuDarvAq/L99JiuXC+kAHo+MvKOhIF64NT4TzdJ dRdFcABk7lqEPHD9cjcBlOoKu7aGznuzjd0gZC+1Ekky/e7XbyPRtjKYQy8Zrr+ngzG3 Cgk8URYF7uGMJvIpdgBX9+CTiTEj9gdJFW3cW7ldQr42RdGHYbcARhjBIuVV4VLTZgwR nl+w== 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=l86Ei1fkDbXEuqc661ZOTKQYy3IWYysTPVwWnpyJJuY=; b=KJIzDRZIt5XYQ6gX4b2gXdMTNpwMJkkRQx9QLkinANMhSvXz1G3wKHwh7btLEOziKl qgdJeKOPvlyL9g50K6G1nW01aq0w/+UxXNDEyY6GzMz36lsKPIN97JLDquQ3p4IYZOML w1rnMnYTy8bZtUc7kWdRNk/5Ms7rei71WfhirTj6TRYQIpxc29j7vpDcaipdPHr/f8R6 nXhMEHWwhyhoVck0bxamvAElLokyoTBzJHkdDDNc6452UlDIhEFBLHhauXuFZxQznkfB nxE+IUHgPSppewXv4hf294SCemVBh7e59fEsxzdM/CSvSZr2HWVFmftTCkfojKpk8GbO 8GdA== X-Gm-Message-State: AA+aEWZA8oIHqurEu4D/qj5TgfzBNRAAkpF7RhBQSEe5LuvgxUeJcPvS whUibM0qdvD5o5f6Or4xo/lKoFtR X-Google-Smtp-Source: AFSGD/XDL7UyAMiU4nRYEOfMN1nRw1mB2qxXPGVuSUpSrN1QwRaR7OlW3RLP03cVgeH049glJ7YGnw== X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr6930359plb.332.1542575995215; Sun, 18 Nov 2018 13:19:55 -0800 (PST) Received: from rrose-laptop.hsd1.ca.comcast.net ([2601:644:8400:fe0a:78cf:438c:a5b1:f0e6]) by smtp.gmail.com with ESMTPSA id o13sm5679720pfk.57.2018.11.18.13.19.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Nov 2018 13:19:54 -0800 (PST) From: Robert Rose To: buildroot@buildroot.org Date: Sun, 18 Nov 2018 13:19:41 -0800 Message-Id: <20181118211942.28839-1-robertroyrose@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/2] c-ares: support host build 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: Robert Rose Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Robert Rose Acked-by: Arnout Vandecappelle (Essensium/Mind) --- package/c-ares/c-ares.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/c-ares/c-ares.mk b/package/c-ares/c-ares.mk index 67254244a1..76e9687b37 100644 --- a/package/c-ares/c-ares.mk +++ b/package/c-ares/c-ares.mk @@ -15,3 +15,4 @@ C_ARES_LICENSE = MIT C_ARES_LICENSE_FILES = ares_mkquery.c $(eval $(autotools-package)) +$(eval $(host-autotools-package)) From patchwork Sun Nov 18 21:19:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: robert rose X-Patchwork-Id: 999560 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.138; helo=whitealder.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="fUzBEAoe"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42ylHG6FdLz9s9m for ; Mon, 19 Nov 2018 08:20:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C21EF86615; Sun, 18 Nov 2018 21:20:06 +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 3IzsG23RqGvC; Sun, 18 Nov 2018 21:20:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7A33186497; Sun, 18 Nov 2018 21:20:03 +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 07B051C2BEC for ; Sun, 18 Nov 2018 21:20:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D0CE686B3B for ; Sun, 18 Nov 2018 21:19:59 +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 TWzkepRcheW4 for ; Sun, 18 Nov 2018 21:19:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by whitealder.osuosl.org (Postfix) with ESMTPS id DAD80867C6 for ; Sun, 18 Nov 2018 21:19:58 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id i12so541236pfo.7 for ; Sun, 18 Nov 2018 13:19:58 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=KCQmsLzYICXdh3ew02EVdtf0MzKyLPd0VVfQI3neNQU=; b=fUzBEAoejdrhU8Drv9C87WXWChpSbU0IPM2QHeLO9DW59xzHHYu6rULF/ZM5NeJqRR +p0MSoq1/E9IXjL2y7gaAUN9W/yFkobEwXlbu/S0/JqgZjkmrKK0wdSN01wXDxTkZ5ow 2hUIMy2SnWQkzZtlB+lIyuGWa4Hu0qqzZY3gTrgFGKAbdyln5fyWJgPrR/Bc3e9AaNbi 2Yvmrt1SahjXehSDxfknUIQIatsK94R26GTyJCvKDMEHf5Eesz41RyDZ2o6S5uFIwVim 3ntgNNEv/59zswoRUgk1g9KvLgRJtG3pU6R8lexDVBtkQ2LI7LfNaYvubPiMixPgY+Hm cZlQ== 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=KCQmsLzYICXdh3ew02EVdtf0MzKyLPd0VVfQI3neNQU=; b=g2cwb9U6IsUrzAvSQrxZeim0g8r8RoEKrLsbxud0uCnA+SsqlpMF6C51qLBpJ09YJB Nk5/7CJPv6QjITeJpIq58pzKdeBfh9USItsA7h67ulqsLxMevW0w1TLoRYh6/k1AgjQo BwY+bOVx9qyJiBbgVIg/v8aScw83oEU2lWzms9EYfosLoI5v6Qc4G5HChoi2rn9EjuzZ fpSVIjqokn5BhXSKgCupvVTBCMRdzTosD+mPdz3QFhzQ0NIkIoO+Mo3k3q9SVuylrBBK W3wRSi4wm+6OG1T1XHGdWW/eGeXTpzDnhm40Ni/9teEb0nZaDFH4ZyW0asK/19nhAGIe nvpg== X-Gm-Message-State: AA+aEWZPXHagS4haReCSC1MXSLvS6/E+6KZx/ax4tYta17RjwpFBrj9M DR7CPLHehw8GlwYzVZF551ZgTTX9 X-Google-Smtp-Source: AFSGD/UsYUqCoLIswCH8+rCeInUJc5uHAN3gHWv7VqWS53be6YeS2HjjY/NrCh7NzQHlO8Wu3T5pSQ== X-Received: by 2002:a63:6cc8:: with SMTP id h191mr5180559pgc.366.1542575998120; Sun, 18 Nov 2018 13:19:58 -0800 (PST) Received: from rrose-laptop.hsd1.ca.comcast.net ([2601:644:8400:fe0a:78cf:438c:a5b1:f0e6]) by smtp.gmail.com with ESMTPSA id o13sm5679720pfk.57.2018.11.18.13.19.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Nov 2018 13:19:57 -0800 (PST) From: Robert Rose To: buildroot@buildroot.org Date: Sun, 18 Nov 2018 13:19:42 -0800 Message-Id: <20181118211942.28839-2-robertroyrose@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181118211942.28839-1-robertroyrose@gmail.com> References: <20181118211942.28839-1-robertroyrose@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/2] grpc: 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: Robert Rose Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Robert Rose --- DEVELOPERS | 3 ++ package/Config.in | 1 + .../0001-target-build-using-host-plugin.patch | 26 ++++++++++++++ package/grpc/Config.in | 11 ++++++ package/grpc/grpc.hash | 3 ++ package/grpc/grpc.mk | 36 +++++++++++++++++++ 6 files changed, 80 insertions(+) create mode 100644 package/grpc/0001-target-build-using-host-plugin.patch create mode 100644 package/grpc/Config.in create mode 100644 package/grpc/grpc.hash create mode 100644 package/grpc/grpc.mk diff --git a/DEVELOPERS b/DEVELOPERS index 53467da489..437614c190 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1772,6 +1772,9 @@ F: package/subversion/ N: RJ Ascani F: package/azmq/ +N: Robert Rose +F: package/grpc + N: Rodrigo Rebello F: package/chocolate-doom/ F: package/irssi/ diff --git a/package/Config.in b/package/Config.in index b60e7700ad..2d0cc51797 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1495,6 +1495,7 @@ menu "Networking" source "package/freeradius-client/Config.in" source "package/geoip/Config.in" source "package/glib-networking/Config.in" + source "package/grpc/Config.in" source "package/gssdp/Config.in" source "package/gupnp/Config.in" source "package/gupnp-av/Config.in" diff --git a/package/grpc/0001-target-build-using-host-plugin.patch b/package/grpc/0001-target-build-using-host-plugin.patch new file mode 100644 index 0000000000..379464916a --- /dev/null +++ b/package/grpc/0001-target-build-using-host-plugin.patch @@ -0,0 +1,26 @@ +From f7e70f03167834ce5e221c7dbca936edb1662274 Mon Sep 17 00:00:00 2001 +From: Robert Rose +Date: Sun, 18 Nov 2018 12:55:49 -0800 +Subject: [PATCH 1/1] target build using host plugin + +Signed-off-by: Robert Rose +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ab1802e..1b44c3c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -199,7 +199,7 @@ function(protobuf_generate_grpc_cpp) + COMMAND ${_gRPC_PROTOBUF_PROTOC_EXECUTABLE} + ARGS --grpc_out=generate_mock_code=true:${_gRPC_PROTO_GENS_DIR} + --cpp_out=${_gRPC_PROTO_GENS_DIR} +- --plugin=protoc-gen-grpc=$ ++ --plugin=protoc-gen-grpc=$,${gRPC_NATIVE_CPP_PLUGIN},$> + ${_protobuf_include_path} + ${REL_FIL} + DEPENDS ${ABS_FIL} ${_gRPC_PROTOBUF_PROTOC} grpc_cpp_plugin +-- +2.19.1 + diff --git a/package/grpc/Config.in b/package/grpc/Config.in new file mode 100644 index 0000000000..e4364c2fe6 --- /dev/null +++ b/package/grpc/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_GRPC + bool "grpc" + select BR2_PACKAGE_C_ARES + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_PROTOBUF + select BR2_PACKAGE_ZLIB + help + A language-neutral, platform-neutral, open source, remote + procedure call (RPC) system initially developed at Google. + + http://github.com/grpc/grpc diff --git a/package/grpc/grpc.hash b/package/grpc/grpc.hash new file mode 100644 index 0000000000..3b1904a883 --- /dev/null +++ b/package/grpc/grpc.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 d99db0b39b490d2469a8ef74197d5f211fa740fc9581dccecbb76c56d080fce1 grpc-v1.16.0.tar.gz +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE diff --git a/package/grpc/grpc.mk b/package/grpc/grpc.mk new file mode 100644 index 0000000000..8ee7781428 --- /dev/null +++ b/package/grpc/grpc.mk @@ -0,0 +1,36 @@ +################################################################################ +# +# grpc +# +################################################################################ + +GRPC_VERSION = v1.16.0 +GRPC_SOURCE = grpc-$(GRPC_VERSION).tar.gz +GRPC_SITE = $(call github,grpc,grpc,$(GRPC_VERSION)) +GRPC_LICENSE = Apache-2.0 +GRPC_LICENSE_FILES = LICENSE + +GRPC_INSTALL_STAGING = YES + +# Need to use host grpc_cpp_plugin during cross compilation. +GRPC_DEPENDENCIES = c-ares host-grpc openssl protobuf zlib +HOST_GRPC_DEPENDENCIES = host-c-ares host-openssl host-protobuf host-zlib + +GRPC_CONF_OPTS = \ + -D_gRPC_CARES_LIBRARIES=cares \ + -DgRPC_CARES_PROVIDER=none \ + -DgRPC_PROTOBUF_PROVIDER=package \ + -DgRPC_SSL_PROVIDER=package \ + -DgRPC_ZLIB_PROVIDER=package \ + -DgRPC_NATIVE_CPP_PLUGIN=$(HOST_DIR)/bin/grpc_cpp_plugin + +HOST_GRPC_CONF_OPTS = \ + -D_gRPC_CARES_LIBRARIES=cares \ + -DgRPC_CARES_PROVIDER=none \ + -DgRPC_CARES_PROVIDER=none \ + -DgRPC_PROTOBUF_PROVIDER=package \ + -DgRPC_SSL_PROVIDER=package \ + -DgRPC_ZLIB_PROVIDER=package + +$(eval $(cmake-package)) +$(eval $(host-cmake-package))