From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Roland Hieber <rhi@pengutronix.de>, ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/8] libbson: new package: routines related to BSON documents
Date: Wed, 17 May 2023 14:38:16 +0200 [thread overview]
Message-ID: <ZGTKuOIANfjqvqZn@pengutronix.de> (raw)
In-Reply-To: <20230515072054.1997217-2-rhi@pengutronix.de>
On Mon, May 15, 2023 at 09:20:48AM +0200, Roland Hieber wrote:
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> ---
> rules/host-libbson.in | 6 +++
> rules/host-libbson.make | 33 +++++++++++++++
> rules/libbson.in | 9 +++++
> rules/libbson.make | 90 +++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 138 insertions(+)
> create mode 100644 rules/host-libbson.in
> create mode 100644 rules/host-libbson.make
> create mode 100644 rules/libbson.in
> create mode 100644 rules/libbson.make
>
> diff --git a/rules/host-libbson.in b/rules/host-libbson.in
> new file mode 100644
> index 000000000000..23eef8540091
> --- /dev/null
> +++ b/rules/host-libbson.in
> @@ -0,0 +1,6 @@
> +## SECTION=hosttools_noprompt
> +
> +config HOST_LIBBSON
> + tristate
> + default y if ALLYES
> + select HOST_CMAKE
> diff --git a/rules/host-libbson.make b/rules/host-libbson.make
> new file mode 100644
> index 000000000000..b68ee64362fe
> --- /dev/null
> +++ b/rules/host-libbson.make
> @@ -0,0 +1,33 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_LIBBSON) += host-libbson
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# cmake
> +#
> +HOST_LIBBSON_CONF_TOOL := cmake
> +HOST_LIBBSON_CONF_OPT := \
> + $(HOST_CMAKE_OPT) \
> + -DENABLE_BSON=ON \
> + -DENABLE_COVERAGE=OFF \
> + -DENABLE_HTML_DOCS=OFF \
> + -DENABLE_ICU=OFF \
> + -DENABLE_MONGOC=OFF \
> + -DENABLE_SASL=OFF \
> + -DENABLE_ZLIB=OFF \
> + -DENABLE_ZSTD=OFF
The host package should have mostly the same CMake options as the target
package. I usually do a vimdiff of the two rule files and then sync the
two.
Michael
> +
> +# vim: syntax=make
> diff --git a/rules/libbson.in b/rules/libbson.in
> new file mode 100644
> index 000000000000..58649ec64863
> --- /dev/null
> +++ b/rules/libbson.in
> @@ -0,0 +1,9 @@
> +## SECTION=system_libraries
> +
> +config LIBBSON
> + tristate
> + select HOST_CMAKE
> + select GLIBC_RT
> + prompt "libbson"
> + help
> + Routines related to building, parsing, and iterating BSON documents
> diff --git a/rules/libbson.make b/rules/libbson.make
> new file mode 100644
> index 000000000000..af0eb8a13401
> --- /dev/null
> +++ b/rules/libbson.make
> @@ -0,0 +1,90 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 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_LIBBSON) += libbson
> +
> +#
> +# Paths and names
> +#
> +LIBBSON_VERSION := 1.23.4
> +LIBBSON_MD5 := 28f2f253777e8d80839c41239de44188
> +LIBBSON := libbson-$(LIBBSON_VERSION)
> +LIBBSON_SUFFIX := tar.gz
> +LIBBSON_URL := https://github.com/mongodb/mongo-c-driver/releases/download/$(LIBBSON_VERSION)/mongo-c-driver-$(LIBBSON_VERSION).$(LIBBSON_SUFFIX)
> +LIBBSON_SOURCE := $(SRCDIR)/$(LIBBSON).$(LIBBSON_SUFFIX)
> +LIBBSON_DIR := $(BUILDDIR)/$(LIBBSON)
> +#LIBBSON_SUBDIR := src/libbson
> +LIBBSON_LICENSE := Apache-2.0 AND MIT
> +LIBBSON_LICENSE_FILES := \
> + file://src/libbson/src/bson/bson.c;endline=15;md5=24960268974cd1c54441e1999c9b5d38 \
> + file://COPYING;md5=2ee41112a44fe7014dce33e26468ba93 \
> + file://src/libbson/THIRD_PARTY_NOTICES;md5=7c6dab59ecb788b1bfe8a307e54c203a
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# cmake
> +#
> +LIBBSON_CONF_TOOL := cmake
> +LIBBSON_CONF_OPT := \
> + $(CROSS_CMAKE_USR) \
> + -DBSON_OUTPUT_BASENAME=bson \
> + -DENABLE_APPLE_FRAMEWORK=OFF \
> + -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=ON \
> + -DENABLE_BSON=ON \
> + -DENABLE_CLIENT_SIDE_ENCRYPTION=OFF \
> + -DENABLE_COVERAGE=OFF \
> + -DENABLE_CRYPTO_SYSTEM_PROFILE=OFF \
> + -DENABLE_DEBUG_ASSERTIONS=OFF \
> + -DENABLE_EXAMPLES=OFF \
> + -DENABLE_EXTRA_ALIGNMENT=ON \
> + -DENABLE_HTML_DOCS=OFF \
> + -DENABLE_ICU=OFF \
> + -DENABLE_MAINTAINER_FLAGS=OFF \
> + -DENABLE_MAN_PAGES=OFF \
> + -DENABLE_MONGOC=OFF \
> + -DENABLE_MONGODB_AWS_AUTH=AUTO \
> + -DENABLE_PIC=ON \
> + -DENABLE_RDTSCP=OFF \
> + -DENABLE_SASL=OFF \
> + -DENABLE_SHM_COUNTERS=ON \
> + -DENABLE_SNAPPY=OFF \
> + -DENABLE_SRV=OFF \
> + -DENABLE_SSL=OFF \
> + -DENABLE_STATIC=OFF \
> + -DENABLE_TESTS=OFF \
> + -DENABLE_TRACING=OFF \
> + -DENABLE_UNINSTALL=ON \
> + -DENABLE_ZLIB=OFF \
> + -DENABLE_ZSTD=OFF
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libbson.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, libbson)
> + @$(call install_fixup, libbson,PRIORITY,optional)
> + @$(call install_fixup, libbson,SECTION,base)
> + @$(call install_fixup, libbson,AUTHOR,"Roland Hieber <rhi@pengutronix.de>")
> + @$(call install_fixup, libbson,DESCRIPTION,missing)
> +
> + @$(call install_lib, libbson, 0, 0, 0755, libbson-1.0)
> +
> + @$(call install_finish, libbson)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2023-05-17 12:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-15 7:20 [ptxdist] [PATCH 1/8] cpputest: new package: C++ unit test framework Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 2/8] libbson: new package: routines related to BSON documents Roland Hieber
2023-05-15 7:26 ` [ptxdist] [PATCH] fixup! " Roland Hieber
2023-05-17 12:38 ` Michael Olbrich [this message]
2023-05-15 7:20 ` [ptxdist] [PATCH 3/8] libconfig: correct license and pin down license files Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 4/8] libevent: amend license and pin down license file Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 5/8] htmldoc: new package: HTML-to-PDF/PostScript/EPUB converter Roland Hieber
2023-05-17 12:29 ` Michael Olbrich
2023-05-15 7:20 ` [ptxdist] [PATCH 6/8] host-canfestival: add host package Roland Hieber
2023-05-17 12:36 ` Michael Olbrich
2023-05-24 22:04 ` Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 7/8] host-libconfig: " Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 8/8] host-libevent: " Roland Hieber
2023-05-17 12:27 ` [ptxdist] [PATCH 1/8] cpputest: new package: C++ unit test framework Michael Olbrich
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=ZGTKuOIANfjqvqZn@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=rhi@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