Skip to contentSkip to conversation

New package RPi-GPIO

PATCH New Ian Haylock 3 participants 4 messages Jan 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 New package RPi-GPIO

---
 package/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/Config.in +1 -0
index f58f2be..4051251 100644
@@ -690,6 +690,7 @@ menu "External python modules"
 	source "package/python-pyyaml/Config.in"
 	source "package/python-pyzmq/Config.in"
 	source "package/python-requests/Config.in"
+	source "package/python-rpi-gpio/Config.in"
 	source "package/python-rtslib-fb/Config.in"
 	source "package/python-serial/Config.in"
 	source "package/python-setuptools/Config.in"
Signature · 1 line
2.6.4
#1 lore raw

PATCH 2/2 New package RPi-GPIO

---
 package/python-rpi-gpio/Config.in            |  9 +++++++++
 package/python-rpi-gpio/python-rpi-gpio.hash |  4 ++++
 package/python-rpi-gpio/python-rpi-gpio.mk   | 14 ++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100755 package/python-rpi-gpio/Config.in
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.hash
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.mk
package/python-rpi-gpio/Config.in new file +9 -0
new file mode 100755
index 0000000..da5b8c2
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_RPI_GPIO
+        bool "python-rpi-gpio"
+	depends on BR2_arm
+	depends on BR2_PACKAGE_PYTHON
+
+        help
+          A Python module to control the GPIO on a Raspberry Pi.
+
+          http://sourceforge.net/p/raspberry-gpio-python
\ No newline at end of file
package/python-rpi-gpio/python-rpi-gpio.hash new file +4 -0
new file mode 100755
index 0000000..b234396
@@ -0,0 +1,4 @@
+md5	a98d0b33e16fce3f303136e963b187ec	RPi.GPIO-0.5.11.tar.gz
+
+
+
package/python-rpi-gpio/python-rpi-gpio.mk new file +14 -0
new file mode 100755
index 0000000..efad0f3
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-rpi-gpio
+#
+################################################################################
+
+PYTHON_RPI_GPIO_VERSION = 0.5.11
+PYTHON_RPI_GPIO_SOURCE = RPi.GPIO-$(PYTHON_RPI_GPIO_VERSION).tar.gz
+PYTHON_RPI_GPIO_SITE = http://sourceforge.net/projects/raspberry-gpio-python/files
+PYTHON_RPI_GPIO_LICENSE = MIT
+PYTHON_RPI_GPIO_LICENSE_FILES = LICENSE.txt
+PYTHON_RPI_GPIO_SETUP_TYPE = distutils
+
+$(eval $(python-package))
\ No newline at end of file
Signature · 1 line
2.6.4
#2 lore raw

PATCH 2/2 New package RPi-GPIO

Hello Ian,

could you please squash these two patches into one?

The patch title should be

python-rpi-gpio: new package

Quoted 32 lines · Ian Haylock
---
 package/python-rpi-gpio/Config.in            |  9 +++++++++
 package/python-rpi-gpio/python-rpi-gpio.hash |  4 ++++
 package/python-rpi-gpio/python-rpi-gpio.mk   | 14 ++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100755 package/python-rpi-gpio/Config.in
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.hash
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.mk
package/python-rpi-gpio/Config.in new file +9 -0
new file mode 100755
index 0000000..da5b8c2
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_RPI_GPIO
+        bool "python-rpi-gpio"
+       depends on BR2_arm
+       depends on BR2_PACKAGE_PYTHON
+
+        help
+          A Python module to control the GPIO on a Raspberry Pi.
+
+          http://sourceforge.net/p/raspberry-gpio-python
\ No newline at end of file
package/python-rpi-gpio/python-rpi-gpio.hash new file +0 -0
new file mode 100755
index 0000000..b234396

package/python-rpi-gpio/python-rpi-gpio.hash line 1

Quoted 1 line
package/python-rpi-gpio/python-rpi-gpio.hash new file +1 -0
@@ -0,0 +1,4 @@
+md5    a98d0b33e16fce3f303136e963b187ec        RPi.GPIO-0.5.11.tar.gz

Could you please name the origin of this MD5 checksum? We also add locally calculated sha256 checksum. See package/python-pyudev package for example.

Quoted 31 lines
package/python-rpi-gpio/python-rpi-gpio.hash new file +3 -0
+
+
+
package/python-rpi-gpio/python-rpi-gpio.mk new file +14 -1
new file mode 100755
index 0000000..efad0f3
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-rpi-gpio
+#
+################################################################################
+
+PYTHON_RPI_GPIO_VERSION = 0.5.11
+PYTHON_RPI_GPIO_SOURCE = RPi.GPIO-$(PYTHON_RPI_GPIO_VERSION).tar.gz
+PYTHON_RPI_GPIO_SITE = http://sourceforge.net/projects/raspberry-gpio-python/files
+PYTHON_RPI_GPIO_LICENSE = MIT
+PYTHON_RPI_GPIO_LICENSE_FILES = LICENSE.txt
+PYTHON_RPI_GPIO_SETUP_TYPE = distutils
+
+$(eval $(python-package))
\ No newline at end of file
--

2.6.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

PATCH 2/2 New package RPi-GPIO

In reply to Ian Haylock

Hi Ian,

In addition to Yegor's comments, a few more things below.

Quoted 9 lines · Ian Haylock
---
 package/python-rpi-gpio/Config.in            |  9 +++++++++
 package/python-rpi-gpio/python-rpi-gpio.hash |  4 ++++
 package/python-rpi-gpio/python-rpi-gpio.mk   | 14 ++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100755 package/python-rpi-gpio/Config.in
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.hash
 create mode 100755 package/python-rpi-gpio/python-rpi-gpio.mk

These files should not be executable.

package/python-rpi-gpio/Config.in line 2

Quoted 9 lines
package/python-rpi-gpio/Config.in new file +2 -0
new file mode 100755
index 0000000..da5b8c2
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_RPI_GPIO
+        bool "python-rpi-gpio"

Indentation should be a single tab.

package/python-rpi-gpio/Config.in line 6

Quoted 4 lines
package/python-rpi-gpio/Config.in new file +4 -0
+	depends on BR2_arm
+	depends on BR2_PACKAGE_PYTHON
+
+        help

Here as well.

package/python-rpi-gpio/Config.in line 7

Quoted 1 line
package/python-rpi-gpio/Config.in new file +1 -0
+          A Python module to control the GPIO on a Raspberry Pi.

And here one tab followed by two spaces.

package/python-rpi-gpio/Config.in line 9

Quoted 3 lines
package/python-rpi-gpio/Config.in new file +2 -0
+
+          http://sourceforge.net/p/raspberry-gpio-python
\ No newline at end of file

There should be a newline at the end of the file (not an empty line, but the
last character should be \n).

package/python-rpi-gpio/python-rpi-gpio.hash line 4

Quoted 10 lines
package/python-rpi-gpio/python-rpi-gpio.hash new file +4 -0
new file mode 100755
index 0000000..b234396
@@ -0,0 +1,4 @@
+md5	a98d0b33e16fce3f303136e963b187ec	RPi.GPIO-0.5.11.tar.gz
+
+
+

There shouldn't be any empty lines here.

Quoted 11 lines
package/python-rpi-gpio/python-rpi-gpio.mk new file +5 -0
new file mode 100755
index 0000000..efad0f3
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-rpi-gpio
+#
+################################################################################

package/python-rpi-gpio/python-rpi-gpio.mk line 14

Quoted 10 lines
package/python-rpi-gpio/python-rpi-gpio.mk new file +9 -0
+
+PYTHON_RPI_GPIO_VERSION = 0.5.11
+PYTHON_RPI_GPIO_SOURCE = RPi.GPIO-$(PYTHON_RPI_GPIO_VERSION).tar.gz
+PYTHON_RPI_GPIO_SITE = http://sourceforge.net/projects/raspberry-gpio-python/files
+PYTHON_RPI_GPIO_LICENSE = MIT
+PYTHON_RPI_GPIO_LICENSE_FILES = LICENSE.txt
+PYTHON_RPI_GPIO_SETUP_TYPE = distutils
+
+$(eval $(python-package))
\ No newline at end of file

There should be a newline here as well.

Regards,
Arnout

Quoted 1 line
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF