From: William A. Kennington III <wak@google.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/3] nanopb: new package
Date: Thu, 12 Jan 2017 11:15:22 -0800 [thread overview]
Message-ID: <20170112191523.23814-3-wak@google.com> (raw)
In-Reply-To: <20170112191523.23814-1-wak@google.com>
We chose not to use a stable version so that our version of nanopb
is compatible with pblog. In the future a stable version should be used.
Signed-off-by: William A. Kennington III <wak@google.com>
---
package/Config.in | 1 +
package/nanopb/Config.in | 8 ++++++++
package/nanopb/nanopb.hash | 2 ++
package/nanopb/nanopb.mk | 25 +++++++++++++++++++++++++
4 files changed, 36 insertions(+)
create mode 100644 package/nanopb/Config.in
create mode 100644 package/nanopb/nanopb.hash
create mode 100644 package/nanopb/nanopb.mk
diff --git a/package/Config.in b/package/Config.in
index 8c8c33ec3..625315c1c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1362,6 +1362,7 @@ endif
source "package/msgpack/Config.in"
source "package/mtdev2tuio/Config.in"
source "package/musl-compat-headers/Config.in"
+ source "package/nanopb/Config.in"
source "package/openblas/Config.in"
source "package/orc/Config.in"
source "package/p11-kit/Config.in"
diff --git a/package/nanopb/Config.in b/package/nanopb/Config.in
new file mode 100644
index 000000000..4c5779f58
--- /dev/null
+++ b/package/nanopb/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_NANOPB
+ bool "nanopb"
+ help
+ Nanopb is a small code-size Protocol Buffers implementation in ansi C.
+ It is especially suitable for use in microcontrollers,
+ but fits any memory restricted system.
+
+ https://github.com/nanopb/nanopb
diff --git a/package/nanopb/nanopb.hash b/package/nanopb/nanopb.hash
new file mode 100644
index 000000000..0a9224777
--- /dev/null
+++ b/package/nanopb/nanopb.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 d29305a235f9a58c95ffd999d258d7dd2c2cbb8b81312a4138dfe5802ff2c8e8 nanopb-afdbca39edfaef58073f661d23300e1133c4e8af.tar.gz
diff --git a/package/nanopb/nanopb.mk b/package/nanopb/nanopb.mk
new file mode 100644
index 000000000..0e3d8cf55
--- /dev/null
+++ b/package/nanopb/nanopb.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# nanopb
+#
+################################################################################
+
+NANOPB_VERSION = afdbca39edfaef58073f661d23300e1133c4e8af
+NANOPB_SITE = $(call github,nanopb,nanopb,$(NANOPB_VERSION))
+NANOPB_LICENSE = BSD-3c
+NANOPB_LICENSE_FILES = LICENSE.txt
+
+NANOPB_DEPENDENCIES = protobuf python-protobuf
+
+define HOST_NANOPB_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/generator/proto
+endef
+
+define NANOPB_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/generator/proto
+endef
+
+# We don't actually need to install anything as you include the library files
+# directly.
+$(eval $(host-generic-package))
+$(eval $(generic-package))
--
2.11.0
next prev parent reply other threads:[~2017-01-12 19:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 1:13 [Buildroot] [PATCH 0/3] pblog: Add new package William A. Kennington III
2016-12-09 1:13 ` [Buildroot] [PATCH 1/3] python-protobuf: Allow host building William A. Kennington III
2016-12-10 14:38 ` Thomas Petazzoni
2016-12-09 1:13 ` [Buildroot] [PATCH 2/3] nanopb: Init at 69e9c1fc8162956feffa32e07a97c53bdb92f5ef William A. Kennington III
2016-12-10 14:37 ` Thomas Petazzoni
2016-12-09 1:13 ` [Buildroot] [PATCH 3/3] pblog: Init at e2e17544950eedac4f3bc59926aed8604d755072 William A. Kennington III
2016-12-10 14:41 ` Thomas Petazzoni
2017-01-12 19:15 ` [Buildroot] [PATCH v2 0/3] pblog: new package William A. Kennington III
2017-01-12 19:15 ` [Buildroot] [PATCH v2 1/3] python-protobuf: Allow host building William A. Kennington III
2017-01-15 21:30 ` Yann E. MORIN
2017-01-17 22:09 ` Arnout Vandecappelle
2017-01-15 21:32 ` Yann E. MORIN
2017-01-12 19:15 ` William A. Kennington III [this message]
2017-01-15 21:51 ` [Buildroot] [PATCH v2 2/3] nanopb: new package Yann E. MORIN
2017-01-18 18:59 ` William Kennington
2017-01-12 19:15 ` [Buildroot] [PATCH v2 3/3] pblog: " William A. Kennington III
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=20170112191523.23814-3-wak@google.com \
--to=wak@google.com \
--cc=buildroot@busybox.net \
/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