From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/7] libyang: Optional C++ bindings
Date: Wed, 4 Dec 2019 16:16:37 +0100 [thread overview]
Message-ID: <20191204161637.610e2d79@windsurf> (raw)
In-Reply-To: <f70195c8c44e4950257e1548b25083254362b266.1575456104.git.jan.kundrat@cesnet.cz>
On Wed, 4 Oct 2017 07:48:35 +0200
Jan Kundr?t <jan.kundrat@cesnet.cz> wrote:
> +if BR2_PACKAGE_LIBYANG
> +
> +config BR2_PACKAGE_LIBYANG_CPP
> + bool "Enable libyang C++ bindings"
Just:
bool "enable C++ bindings"
no need to repeat the package name.
> + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
I suppose you also need:
depends on BR2_INSTALL_LIBSTDCPP
> + help
> + Build the C++ wrapper around libyang.
You also need a Config.in comment to document the C++ and gcc >= 4.8
dependencies.
> diff --git a/package/libyang/libyang.mk b/package/libyang/libyang.mk
> index cfec08cd16..87a1a4ef7c 100644
> --- a/package/libyang/libyang.mk
> +++ b/package/libyang/libyang.mk
> @@ -21,5 +21,12 @@ HOST_LIBYANG_CONF_OPTS = \
> -DENABLE_VALGRIND_TESTS=OFF \
> -DGEN_PYTHON_BINDINGS=OFF
>
> +ifdef BR2_PACKAGE_LIBYANG_CPP
should be:
ifeq ($(BR2_PACKAGE_LIBYANG_CPP),y)
> + LIBYANG_DEPENDENCIES += host-swig
> + HOST_LIBYANG_DEPENDENCIES += host-swig
> + LIBYANG_CONF_OPTS += -DGEN_LANGUAGE_BINDINGS=ON -DGEN_CPP_BINDINGS=ON -DGEN_PYTHON_BINDINGS=OFF -DGEN_JAVA_BINDINGS=OFF
> + HOST_LIBYANG_CONF_OPTS += -DGEN_LANGUAGE_BINDINGS=ON -DGEN_CPP_BINDINGS=ON -DGEN_PYTHON_BINDINGS=OFF -DGEN_JAVA_BINDINGS=OFF
This is not good: BR2_PACKAGE_LIBYANG_CPP is a target configuration
option, it should not affect how the host variant of libyang is built.
Unless you need the C++ bindings in host-libyang, just make
BR2_PACKAGE_LIBYANG_CPP=y enable the C++ bindings in the target package.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-12-04 15:16 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-04 10:41 [Buildroot] [PATCH 0/7] Improve sysrepo support Jan Kundrát
2019-12-04 9:05 ` [Buildroot] [PATCH 2/7] sysrepo: fix a typo when installing with systemd Jan Kundrát
2019-12-04 13:15 ` Heiko Thiery
2019-12-08 21:51 ` Thomas Petazzoni
2019-12-22 20:28 ` Peter Korsgaard
2019-12-04 9:35 ` [Buildroot] [PATCH 3/7] sysrepo: libnetconf2 is not needed Jan Kundrát
2019-12-04 13:07 ` Heiko Thiery
2019-12-08 21:57 ` Thomas Petazzoni
2019-12-22 20:29 ` Peter Korsgaard
2019-12-04 9:37 ` [Buildroot] [PATCH 4/7] sysrepo: Optional support for C++ bindings Jan Kundrát
2019-12-08 21:59 ` Thomas Petazzoni
2019-12-04 9:37 ` [Buildroot] [PATCH 5/7] sysrepo: Use a common repository location Jan Kundrát
2019-12-04 12:29 ` Heiko Thiery
2019-12-08 22:03 ` Thomas Petazzoni
2019-12-04 10:17 ` [Buildroot] [PATCH 7/7] Add me as a maintainer for the NETCONF stack Jan Kundrát
2019-12-08 22:04 ` Thomas Petazzoni
2019-12-22 20:29 ` Peter Korsgaard
2019-12-04 10:47 ` [Buildroot] [PATCH 1/7] libyang: Optional C++ bindings Jan Kundrát
2019-12-04 13:23 ` Heiko Thiery
2019-12-04 15:16 ` Thomas Petazzoni [this message]
2019-12-04 10:47 ` [Buildroot] [PATCH 6/7] libnetconf2: adjust dependencies Jan Kundrát
2019-12-04 12:53 ` Heiko Thiery
2019-12-04 13:00 ` Jan Kundrát
2019-12-04 13:11 ` Heiko Thiery
2019-12-04 15:14 ` Thomas Petazzoni
2019-12-08 22:05 ` [Buildroot] [PATCH 0/7] Improve sysrepo support Thomas Petazzoni
2019-12-08 22:11 ` Jan Kundrát
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=20191204161637.610e2d79@windsurf \
--to=thomas.petazzoni@bootlin.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