mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] protobuf-c: new package
@ 2023-01-25 13:38 Ian Abbott
  2023-02-08 11:49 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Abbott @ 2023-01-25 13:38 UTC (permalink / raw)
  To: ptxdist; +Cc: Ian Abbott

Also host-protobuf-c.  The C code generator plug-in for protoc is only
built for the host package.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
---
 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 <abbotti@mev.co.uk>
+#
+# 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 <abbotti@mev.co.uk>
+#
+# 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 <abbotti@mev.co.uk>")
+	@$(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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] protobuf-c: new package
  2023-01-25 13:38 [ptxdist] [PATCH] protobuf-c: new package Ian Abbott
@ 2023-02-08 11:49 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2023-02-08 11:49 UTC (permalink / raw)
  To: ptxdist; +Cc: Ian Abbott

Thanks, applied as a2b43511753020b609352b2a5844efe7a00ea234.

Michael

[sent from post-receive hook]

On Wed, 08 Feb 2023 12:49:57 +0100, Ian Abbott <abbotti@mev.co.uk> wrote:
> Also host-protobuf-c.  The C code generator plug-in for protoc is only
> built for the host package.
> 
> Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
> Message-Id: <20230125133808.552955-1-abbotti@mev.co.uk>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/host-protobuf-c.in b/rules/host-protobuf-c.in
> new file mode 100644
> index 000000000000..fc7f332f70cf
> --- /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 000000000000..c63134ff0401
> --- /dev/null
> +++ b/rules/host-protobuf-c.make
> @@ -0,0 +1,22 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Ian Abbott <abbotti@mev.co.uk>
> +#
> +# 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 000000000000..921f70471a92
> --- /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 000000000000..60f7f6494520
> --- /dev/null
> +++ b/rules/protobuf-c.make
> @@ -0,0 +1,59 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Ian Abbott <abbotti@mev.co.uk>
> +#
> +# 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 <abbotti@mev.co.uk>")
> +	@$(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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-08 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25 13:38 [ptxdist] [PATCH] protobuf-c: new package Ian Abbott
2023-02-08 11:49 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox