mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v2 02/13] nanopb: new package: tiny protobuf implementation
Date: Fri, 24 May 2024 11:56:55 +0200	[thread overview]
Message-ID: <20240524095706.2206475-3-rhi@pengutronix.de> (raw)
In-Reply-To: <20240524095706.2206475-1-rhi@pengutronix.de>

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/nanopb.in   | 12 ++++++++++++
 rules/nanopb.make | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 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..4b592768830d
--- /dev/null
+++ b/rules/nanopb.make
@@ -0,0 +1,41 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2024 by Roland Hieber <rhi@pengutronix.de>
+#
+# 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
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+NANOPB_CONF_TOOL	:= cmake
+NANOPB_CONF_OPT		:= \
+	$(CROSS_CMAKE_USR)
+
+# Note: the package installs only headers, generators, and static libraries, so
+# no targetinstall stage is needed.
+
+# vim: syntax=make
-- 
2.39.2




  parent reply	other threads:[~2024-05-24  9:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24  9:56 [ptxdist] [PATCH v2 00/13] nanopb, at-spi2-core, and some python3 packages Roland Hieber
2024-05-24  9:56 ` [ptxdist] [PATCH v2 01/13] atk: rename to at-spi2-core; version bump 2.38.0 -> 2.52.0 Roland Hieber
2024-05-24  9:56 ` Roland Hieber [this message]
2024-05-24  9:56 ` [ptxdist] [PATCH v2 03/13] paho-mqtt-cpp: version bump 1.0.1 -> 1.2.0 Roland Hieber
2024-05-24  9:56 ` [ptxdist] [PATCH v2 04/13] python3-jinja2: pin down license files Roland Hieber
2024-05-24  9:56 ` [ptxdist] [PATCH v2 05/13] host-python3-markupsafe: add host package Roland Hieber
2024-05-31 18:30   ` Michael Olbrich
2024-05-24  9:56 ` [ptxdist] [PATCH v2 06/13] host-python3-jinja2: " Roland Hieber
2024-05-24  9:57 ` [ptxdist] [PATCH v2 07/13] host-python3-dunamai: add new " Roland Hieber
2024-05-31 18:30   ` Michael Olbrich
2024-05-24  9:57 ` [ptxdist] [PATCH v2 08/13] host-python3-tomlkit: " Roland Hieber
2024-05-31 18:32   ` Michael Olbrich
2024-05-24  9:57 ` [ptxdist] [PATCH v2 09/13] host-python3-poetry-core: " Roland Hieber
2024-05-24  9:57 ` [ptxdist] [PATCH v2 10/13] host-python3-poetry-dynamic-versioning: " Roland Hieber
2024-05-24  9:57 ` [ptxdist] [PATCH v2 11/13] python3-aiomqtt: new package Roland Hieber
2024-05-24  9:57 ` [ptxdist] [PATCH v2 12/13] python3-periphery: " Roland Hieber
2024-05-24  9:57 ` [ptxdist] [PATCH v2 13/13] python3-protobuf: " Roland Hieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240524095706.2206475-3-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox