From patchwork Wed May 16 13:58:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 914651 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="H9lCFVQM"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mGQW2dPtz9s2L for ; Thu, 17 May 2018 00:04:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AE53981BA6; Wed, 16 May 2018 14:04:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xccbP4pfgt2d; Wed, 16 May 2018 14:04:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D13D8814A2; Wed, 16 May 2018 14:04:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 5C0231CF1C3 for ; Wed, 16 May 2018 14:04:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 58C7220784 for ; Wed, 16 May 2018 14:04:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q7Sazq3pRzA3 for ; Wed, 16 May 2018 14:04:23 +0000 (UTC) X-Greylist: delayed 00:05:21 by SQLgrey-1.7.6 Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by silver.osuosl.org (Postfix) with ESMTPS id C10F6220D6 for ; Wed, 16 May 2018 14:04:22 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id g21-v6so1381172wrb.8 for ; Wed, 16 May 2018 07:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=bKia4knMGG5V53/HYXFwMS7icS+jBvrqxcXyxEc6b2A=; b=H9lCFVQMTCzKsHcxZBrFutWKW25zbAuexiIaxU+U5nXJoeZkjAC0apPMjPSKptDblA qR591k2QpcoGBXaokjomvIhrB1Tcn0zicwgCFCS1fY/1aW58Y3DHvbr3YoJSXAyaWf2f j72UKBJ3jqtqE1p9yhztcP4gdsf4CoUM/FP67ixzF+VXziLzbh5ct9hUBq/7yipXiGba htQJ3SAQ1duRJ4xzjBJFvWh2ltgO8CLNC95EXwZfAokxDEIYqBoWdYgEzni+VC0DOfSz QzZgJN3wQf0JXEuModxLwYUCG8y7CRkou9RWTqNDuw7RXYi6gULaaaIXDpp1CPya189Y Z4RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bKia4knMGG5V53/HYXFwMS7icS+jBvrqxcXyxEc6b2A=; b=kmt+CxLhHToNiuZmzWh7PJ7omnBAx3bof6a/YUFbEJX6liSk/RbqzYHqUFb0XdywOd 8GY33TjVinyEZcQFd87FxUQN8y0VwOoCQcI34V52X4DM98wX2B4XgKegcpFvuns3hKWp d2Ebx41p19Ps5ysNL2rU4TrJiYn62cfnZYdXzH26UPV52+ffdW9Kf19UXODN31hzyrlc h4k7iKle6TshOBw0HTrfvxlBML5OdPUhnioBz9jScY+id3KWYGYjkMqiCx9dS0eLgdTp Z1sIu/yj8LEl/mkPmd7RFqwCNm/eYEjjFXfFnffE36Qpxan6s/Jaeqob7e3Kqc3Quj7V f4pw== X-Gm-Message-State: ALKqPwc8E+fd7mnGTTGxbIfPUkNKQIDgzcFYL1Shcin3gcpbq40zMWZH 5y6uYRaVeStN3QAJqYC3Ae0YfQ== X-Google-Smtp-Source: AB8JxZqP0A2Y81bNfBfwErFS4YMRcTKCP/V05yJa5fWNhXhTgxAlqWC+hN2rSn2QapgudxxQti7Zlg== X-Received: by 2002:adf:9b98:: with SMTP id d24-v6mr1048887wrc.240.1526479139579; Wed, 16 May 2018 06:58:59 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w40-v6sm4494755wrc.69.2018.05.16.06.58.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 06:58:58 -0700 (PDT) From: Bartosz Golaszewski To: Thomas Petazzoni , Peter Korsgaard Date: Wed, 16 May 2018 15:58:56 +0200 Message-Id: <20180516135856.29408-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.0 Subject: [Buildroot] [PATCH] libgpiod: bump version to v1.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , buildroot@buildroot.org MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- 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))