From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 22 May 2024 23:16:23 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s9tJv-00ECcP-1h for lore@lore.pengutronix.de; Wed, 22 May 2024 23:16:23 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1s9tJu-0001Ox-LU; Wed, 22 May 2024 23:16:22 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s9tJJ-0000YH-GY; Wed, 22 May 2024 23:15:45 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9tJI-002Zic-Sa; Wed, 22 May 2024 23:15:44 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1s9tJI-006Nis-2i; Wed, 22 May 2024 23:15:44 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Wed, 22 May 2024 23:15:32 +0200 Message-Id: <20240522211543.1509741-2-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240522211543.1509741-1-rhi@pengutronix.de> References: <20240522211543.1509741-1-rhi@pengutronix.de> MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 02/13] nanopb: new package: tiny protobuf implementation 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: Roland Hieber 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Roland Hieber --- rules/nanopb.in | 12 ++++++++++++ rules/nanopb.make | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 rules/nanopb.in create mode 100644 rules/nanopb.make diff --git a/rules/nanopb.in b/rules/nanopb.in new file mode 100644 index 000000000000..ca3ac1b2c1d8 --- /dev/null +++ b/rules/nanopb.in @@ -0,0 +1,12 @@ +## SECTION=system_libraries + +config NANOPB + tristate + select HOST_CMAKE + select HOST_SYSTEM_PYTHON3 + select HOST_PROTOBUF + prompt "nanopb" + help + Nanopb is a plain-C implementation of Google's Protocol Buffers data + format. It is targeted at 32 bit microcontrollers, but is also fit for + other embedded systems with tight memory constraints. diff --git a/rules/nanopb.make b/rules/nanopb.make new file mode 100644 index 000000000000..808c26b917e5 --- /dev/null +++ b/rules/nanopb.make @@ -0,0 +1,49 @@ +# -*-makefile-*- +# +# Copyright (C) 2024 by Roland Hieber +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_NANOPB) += nanopb + +# +# Paths and names +# +NANOPB_VERSION := 0.4.8 +NANOPB_MD5 := 7c5305add7bf70b915c6eb1dc50cc20f +NANOPB := nanopb-$(NANOPB_VERSION) +NANOPB_SUFFIX := tar.gz +NANOPB_URL := https://jpa.kapsi.fi/nanopb/download//$(NANOPB).$(NANOPB_SUFFIX) +NANOPB_SOURCE := $(SRCDIR)/$(NANOPB).$(NANOPB_SUFFIX) +NANOPB_DIR := $(BUILDDIR)/$(NANOPB) +NANOPB_LICENSE := Zlib +NANOPB_LICENSE_FILES := file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +NANOPB_CONF_ENV := $(CROSS_ENV) + +# +# cmake +# +NANOPB_CONF_TOOL := cmake +NANOPB_CONF_OPT := \ + $(CROSS_CMAKE_USR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +# Note: the package installs only headers, generators, and static libraries +$(STATEDIR)/nanopb.targetinstall: + @$(call targetinfo) + @$(call touch) + +# vim: syntax=make -- 2.39.2