From patchwork Sun Mar 8 08:28:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 447681 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id B3B96140216 for ; Sun, 8 Mar 2015 19:36:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8BBFD94CE7; Sun, 8 Mar 2015 08:36:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uRbXUN+4RIyw; Sun, 8 Mar 2015 08:36:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CBF5994D45; Sun, 8 Mar 2015 08:36:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4E2B81C2843 for ; Sun, 8 Mar 2015 08:36:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4628791924 for ; Sun, 8 Mar 2015 08:36:02 +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 4m2+gZKkgBon for ; Sun, 8 Mar 2015 08:36:00 +0000 (UTC) X-Greylist: delayed 00:07:42 by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id 77DDE91922 for ; Sun, 8 Mar 2015 08:36:00 +0000 (UTC) Received: by wivr20 with SMTP id r20so12971645wiv.5 for ; Sun, 08 Mar 2015 00:35:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AcbM1gLuuGfvJoycqKRD/fUgN9/wqdgWl48K549Zhq0=; b=NMQeP92P1SMmoVe8myYCXbYGhMMckqAfdbKPBhgZf7aygcJkkt5s1KXiCL/7FOfTmx dFbvml/sQgBfgVf5oUs3YNwGScRqxw33otvTKJNU1RC0N2KpZ3ADrxh4yHIwRWSN6B6a WhTDS8ahHQmfd5DuddJAEuURIcRLcNmSE+VZHLWt6X+4asaKOAWXKNWtg/MQZZIOKUzh 1dtODmlgDjufWMQEAffhIYod2kU2m3A0lMdtqRuwLHgYbx+7hjuAZwh74quJsXcIxV/m ZdHLxyTbjhtGpjtLAhsruFkGGh5xNkxvzVSyYz4lpuslUAy0Rb6Db/cOSs8lhZap+rIG vpeg== X-Gm-Message-State: ALoCoQlDRYksvqnd28zpp4+JkJYdjOYgjrJKzc2cI5NoFtOwL6MfFFiPzeTvhgB4FNjFH9gzm29c X-Received: by 10.180.208.107 with SMTP id md11mr6210202wic.10.1425803296696; Sun, 08 Mar 2015 00:28:16 -0800 (PST) Received: from panicking.fastwebnet.it ([93.56.192.157]) by mx.google.com with ESMTPSA id dq1sm20755696wib.20.2015.03.08.00.28.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Mar 2015 00:28:15 -0800 (PST) From: Michael Trimarchi To: buildroot@busybox.net Date: Sun, 8 Mar 2015 09:28:13 +0100 Message-Id: <1425803293-25109-1-git-send-email-michael@amarulasolutions.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH V2] python: spidev: add spidev plugin to manage spi from userspace X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Cc: Yegor Yefremov Reviewed-by: Yegor Yefremov Signed-off-by: Michael Trimarchi --- Changes for V2: - this package supports both Python 2.x and 3.x. Remove depends on BR2_PACKAGE_PYTHON. --- package/Config.in | 1 + package/python-spidev/Config.in | 7 +++++++ package/python-spidev/python-spidev.mk | 14 ++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 package/python-spidev/Config.in create mode 100644 package/python-spidev/python-spidev.mk diff --git a/package/Config.in b/package/Config.in index 584887b..8814a07 100644 --- a/package/Config.in +++ b/package/Config.in @@ -576,6 +576,7 @@ menu "external python modules" source "package/python-setuptools/Config.in" source "package/python-simplejson/Config.in" source "package/python-six/Config.in" + source "package/python-spidev/Config.in" source "package/python-thrift/Config.in" source "package/python-tornado/Config.in" source "package/python-twisted/Config.in" diff --git a/package/python-spidev/Config.in b/package/python-spidev/Config.in new file mode 100644 index 0000000..8540d55 --- /dev/null +++ b/package/python-spidev/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_SPIDEV + bool "python-spidev" + help + Python module for interfacing with SPI devices from user + space via the spidev linux kernel driver. + + https://pypi.python.org/pypi/spidev diff --git a/package/python-spidev/python-spidev.mk b/package/python-spidev/python-spidev.mk new file mode 100644 index 0000000..b6e1fce --- /dev/null +++ b/package/python-spidev/python-spidev.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-spidev +# +################################################################################ + +PYTHON_SPIDEV_VERSION = 3.0 +PYTHON_SPIDEV_SOURCE = spidev-$(PYTHON_SPIDEV_VERSION).tar.gz +PYTHON_SPIDEV_SITE = https://pypi.python.org/packages/source/s/spidev +PYTHON_SPIDEV_SETUP_TYPE = distutils +PYTHON_SPIDEV_LICENSE = GPLv2 +PYTHON_SPIDEV_LICENSE_FILES = LICENSE + +$(eval $(python-package))