From: Bartosz Golaszewski <brgl@bgdev.pl>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] libgpiod: bump version to v1.1
Date: Wed, 16 May 2018 15:58:56 +0200 [thread overview]
Message-ID: <20180516135856.29408-1-brgl@bgdev.pl> (raw)
This is a minor release the main feature of which are the
object-oriented bindings for C++ and Python3. Other than that there's
a couple bug-fixes and minor improvements all around.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
package/libgpiod/Config.in | 20 ++++++++++++++++++++
package/libgpiod/libgpiod.hash | 2 +-
package/libgpiod/libgpiod.mk | 20 ++++++++++++++++++--
3 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/package/libgpiod/Config.in b/package/libgpiod/Config.in
index 63a7cb6e78..c10f11cc15 100644
--- a/package/libgpiod/Config.in
+++ b/package/libgpiod/Config.in
@@ -14,6 +14,26 @@ config BR2_PACKAGE_LIBGPIOD_TOOLS
help
Include a set of command-line tools for managing GPIOs.
+config BR2_PACKAGE_LIBGPIODCXX
+ bool "install C++ bindings"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
+ help
+ Build C++ bindings for libgpiod.
+
+comment "C++ bindings need a toolchain w/ C++, gcc >= 4.8"
+ depends on !BR2_INSTALL_LIBSTDCPP || \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+
+config BR2_PACKAGE_LIBGPIOD_PYTHON
+ bool "install python bindings"
+ depends on BR2_PACKAGE_PYTHON3
+ help
+ Build Python3 bindings for libgpiod.
+
+comment "Python bindings need python3"
+ depends on !BR2_PACKAGE_PYTHON3
+
endif
comment "libgpiod needs kernel headers >= 4.8"
diff --git a/package/libgpiod/libgpiod.hash b/package/libgpiod/libgpiod.hash
index 9ed4b59ab9..1d217f6048 100644
--- a/package/libgpiod/libgpiod.hash
+++ b/package/libgpiod/libgpiod.hash
@@ -1,4 +1,4 @@
# From https://www.kernel.org/pub/software/libs/libgpiod/sha256sums.asc
-sha256 972924195367f5fb045c023d65340c4b7dfc8764499516be446553865208dedc libgpiod-1.0.1.tar.xz
+sha256 9758466468a7ef3f5e30c182c1303abef6241e665cda4d82a64328a7474838c1 libgpiod-1.1.tar.xz
# Hash for license file
sha256 ce64d5f7b49ea6d80fdb6d4cdee6839d1a94274f7493dc797c3b55b65ec8e9ed COPYING
diff --git a/package/libgpiod/libgpiod.mk b/package/libgpiod/libgpiod.mk
index 7f8fa4b7dd..3a829c11c8 100644
--- a/package/libgpiod/libgpiod.mk
+++ b/package/libgpiod/libgpiod.mk
@@ -4,13 +4,12 @@
#
################################################################################
-LIBGPIOD_VERSION = 1.0.1
+LIBGPIOD_VERSION = 1.1
LIBGPIOD_SOURCE = libgpiod-$(LIBGPIOD_VERSION).tar.xz
LIBGPIOD_SITE = https://www.kernel.org/pub/software/libs/libgpiod
LIBGPIOD_LICENSE = LGPL-2.1+
LIBGPIOD_LICENSE_FILES = COPYING
LIBGPIOD_INSTALL_STAGING = YES
-
LIBGPIOD_DEPENDENCIES = host-pkgconf
ifeq ($(BR2_PACKAGE_LIBGPIOD_TOOLS),y)
@@ -19,4 +18,21 @@ else
LIBGPIOD_CONF_OPTS += --disable-tools
endif
+ifeq ($(BR2_PACKAGE_LIBGPIODCXX),y)
+LIBGPIOD_CONF_OPTS += --enable-bindings-cxx
+else
+LIBGPIOD_CONF_OPTS += --disable-bindings-cxx
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGPIOD_PYTHON),y)
+LIBGPIOD_CONF_OPTS += --enable-bindings-python
+LIBGPIOD_DEPENDENCIES += python3 host-python3
+LIBGPIOD_CONF_ENV += \
+ PYTHON=$(HOST_DIR)/bin/python3 \
+ PYTHON_CPPFLAGS="`$(STAGING_DIR)/usr/bin/python3-config --includes`" \
+ PYTHON_LIBS="`$(STAGING_DIR)/usr/bin/python3-config --ldflags`"
+else
+LIBGPIOD_CONF_OPTS += --disable-bindings-python
+endif
+
$(eval $(autotools-package))
--
2.17.0
next reply other threads:[~2018-05-16 13:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-16 13:58 Bartosz Golaszewski [this message]
2018-05-16 21:48 ` [Buildroot] [PATCH] libgpiod: bump version to v1.1 Arnout Vandecappelle
2018-05-17 7:00 ` Bartosz Golaszewski
2018-05-17 7:20 ` Baruch Siach
2018-05-17 8:10 ` Bartosz Golaszewski
2018-05-17 8:13 ` Thomas Petazzoni
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=20180516135856.29408-1-brgl@bgdev.pl \
--to=brgl@bgdev.pl \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.