From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 25 Jan 2023 14:38:43 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pKfzA-001XYk-Hx for lore@lore.pengutronix.de; Wed, 25 Jan 2023 14:38:43 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pKfz8-0004i4-Cd; Wed, 25 Jan 2023 14:38:42 +0100 Received: from smtp67.ord1d.emailsrvr.com ([184.106.54.67]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKfyu-0004hv-ML for ptxdist@pengutronix.de; Wed, 25 Jan 2023 14:38:29 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20221208-6x11dpa4; t=1674653906; bh=sYHyYHtOaytvuyOv16bJTjTymGSiD1VE+D7TQpOD0Mk=; h=From:To:Subject:Date:From; b=ecKXnZPESJsCUIzg6xxt2yM3iCkrOMLqd/X+LjxISXw1fRi9LRsSk5esZZf60t0La JolRSDft/5yHeLD2UeClmntZo0/SZRWA+zZMYnqG09tBR5QlY03OjdDQAEt9WiOLDt 5WEsxrx5E0qQiyzernKhmHwr4K6Q0KfkH5qMDq68= X-Auth-ID: abbotti@mev.co.uk Received: by smtp9.relay.ord1d.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id D0AF5C00D0; Wed, 25 Jan 2023 08:38:25 -0500 (EST) From: Ian Abbott To: ptxdist@pengutronix.de Date: Wed, 25 Jan 2023 13:38:08 +0000 Message-Id: <20230125133808.552955-1-abbotti@mev.co.uk> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Classification-ID: b74d228e-08ca-43e6-93b3-aa2d8df87b1c-1-1 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] protobuf-c: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Ian Abbott Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Also host-protobuf-c. The C code generator plug-in for protoc is only built for the host package. Signed-off-by: Ian Abbott --- rules/host-protobuf-c.in | 6 ++++ rules/host-protobuf-c.make | 22 ++++++++++++++ rules/protobuf-c.in | 13 +++++++++ rules/protobuf-c.make | 59 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 rules/host-protobuf-c.in create mode 100644 rules/host-protobuf-c.make create mode 100644 rules/protobuf-c.in create mode 100644 rules/protobuf-c.make diff --git a/rules/host-protobuf-c.in b/rules/host-protobuf-c.in new file mode 100644 index 000000000..fc7f332f7 --- /dev/null +++ b/rules/host-protobuf-c.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_noprompt + +config HOST_PROTOBUF_C + tristate + select HOST_PROTOBUF + default y if ALLYES diff --git a/rules/host-protobuf-c.make b/rules/host-protobuf-c.make new file mode 100644 index 000000000..c63134ff0 --- /dev/null +++ b/rules/host-protobuf-c.make @@ -0,0 +1,22 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Ian Abbott +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_PROTOBUF_C) += host-protobuf-c + +# +# autoconf +# +HOST_PROTOBUF_C_CONF_TOOL := autoconf +HOST_PROTOBUF_C_CONF_OPT := \ + $(HOST_AUTOCONF) \ + --disable-static + +# vim: syntax=make diff --git a/rules/protobuf-c.in b/rules/protobuf-c.in new file mode 100644 index 000000000..921f70471 --- /dev/null +++ b/rules/protobuf-c.in @@ -0,0 +1,13 @@ +## SECTION=system_libraries + +config PROTOBUF_C + tristate + select HOST_PROTOBUF_C + prompt "protobuf-c " + help + A C implementation of the Protocol Buffers data serialization + format. + + NOTE: This installs the libprotobuf-c shared library for the + target. The host package includes the code generator plug-in + for the protoc command. diff --git a/rules/protobuf-c.make b/rules/protobuf-c.make new file mode 100644 index 000000000..60f7f6494 --- /dev/null +++ b/rules/protobuf-c.make @@ -0,0 +1,59 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Ian Abbott +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PROTOBUF_C) += protobuf-c + +# +# Paths and names +# +PROTOBUF_C_VERSION := 1.4.1 +PROTOBUF_C_MD5 := 4c17d70317ce9fc4cca9690377284659 +PROTOBUF_C := protobuf-c-$(PROTOBUF_C_VERSION) +PROTOBUF_C_SUFFIX := tar.gz +PROTOBUF_C_URL := https://github.com/protobuf-c/protobuf-c/releases/download/v$(PROTOBUF_C_VERSION)/protobuf-c-$(PROTOBUF_C_VERSION).$(PROTOBUF_C_SUFFIX) +PROTOBUF_C_SOURCE := $(SRCDIR)/$(PROTOBUF_C).$(PROTOBUF_C_SUFFIX) +PROTOBUF_C_DIR := $(BUILDDIR)/$(PROTOBUF_C) +PROTOBUF_C_LICENSE := BSD-2-Clause +PROTOBUF_C_LICENSE_FILES := file://LICENSE;md5=9f725889e0d77383e26cb42b0b62cea2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +PROTOBUF_C_CONF_TOOL := autoconf +PROTOBUF_C_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-protoc \ + --disable-static + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/protobuf-c.targetinstall: + @$(call targetinfo) + + @$(call install_init, protobuf-c) + @$(call install_fixup, protobuf-c,PRIORITY,optional) + @$(call install_fixup, protobuf-c,SECTION,base) + @$(call install_fixup, protobuf-c,AUTHOR,"Ian Abbott ") + @$(call install_fixup, protobuf-c,DESCRIPTION,missing) + + @$(call install_lib, protobuf-c, 0, 0, 0644, libprotobuf-c) + + @$(call install_finish, protobuf-c) + + @$(call touch) + +# vim: syntax=make -- 2.39.0