pigpio: new package
authorGrzegorz Blach <grzegorz@blach.pl>
Fri, 28 Sep 2018 18:00:33 +0000 (20:00 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 9 Oct 2018 13:26:31 +0000 (15:26 +0200)
Pigpio is a library for the Raspberry Pi which allows
control of the General Purpose Input Outputs (GPIO).

http://abyz.me.uk/rpi/pigpio/

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
[Thomas:
 - Use proper SPDX tag for The Unlicense
 - Add missing dependency on !BR2_STATIC_LIBS, since the Makefile is
   unconditionally building a shared library
 - Use BR2_arm instead of BR2_ARM_EABIHF, there's nothing that makes
   it EABIHF specific.
 - Use -D and full destination paths during the installation.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/pigpio/Config.in [new file with mode: 0644]
package/pigpio/pigpio.hash [new file with mode: 0644]
package/pigpio/pigpio.mk [new file with mode: 0644]

index 54bc1b8616a22600366336c60a2f8374f0616122..09d7138827451cc4728490abd38c658d5aeaa71d 100644 (file)
@@ -921,6 +921,7 @@ F:  package/libwebsock/
 F:     package/sofia-sip/
 
 N:     Grzegorz Blach <grzegorz@blach.pl>
+F:     package/pigpio/
 F:     package/python-falcon/
 F:     package/python-mimeparse/
 
index 1f1158a79ce70e58eeaae98b5cd06f4e2a751efe..09e281eb3903320f99bb2c92d409efb56e7ef976 100644 (file)
@@ -487,6 +487,7 @@ endmenu
        source "package/pdbg/Config.in"
        source "package/picocom/Config.in"
        source "package/pifmrds/Config.in"
+       source "package/pigpio/Config.in"
        source "package/powertop/Config.in"
        source "package/pps-tools/Config.in"
        source "package/pru-software-support/Config.in"
diff --git a/package/pigpio/Config.in b/package/pigpio/Config.in
new file mode 100644 (file)
index 0000000..fee496b
--- /dev/null
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PIGPIO
+       bool "pigpio"
+       depends on BR2_aarch64 || BR2_arm
+       depends on !BR2_STATIC_LIBS
+       help
+         Pigpio is a library for the Raspberry Pi which allows
+         control of the General Purpose Input Outputs (GPIO).
+
+         http://abyz.me.uk/rpi/pigpio/
+
+comment "pigpio needs a toolchain w/ dynamic library"
+       depends on BR2_aarch64 || BR2_arm
+       depends on !BR2_STATIC_LIBS
diff --git a/package/pigpio/pigpio.hash b/package/pigpio/pigpio.hash
new file mode 100644 (file)
index 0000000..db43901
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 4255310dd11ed81035b60711becad081a1eaad2905f704e3eb84e692ca7e4c3d  pigpio-V67.tar.gz
+sha256 6a90b88421a0d9b090e121daa11b3c6d55eed5eeb3281a2fcc454d6a28b5547c  UNLICENCE
diff --git a/package/pigpio/pigpio.mk b/package/pigpio/pigpio.mk
new file mode 100644 (file)
index 0000000..48628a9
--- /dev/null
@@ -0,0 +1,25 @@
+################################################################################
+#
+# pigpio
+#
+################################################################################
+
+PIGPIO_VERSION = V67
+PIGPIO_SITE = $(call github,joan2937,pigpio,$(PIGPIO_VERSION))
+PIGPIO_LICENSE = Unlicense
+PIGPIO_LICENSE_FILES = UNLICENCE
+
+define PIGPIO_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define PIGPIO_INSTALL_TARGET_CMDS
+       $(INSTALL) -D -m 0755 $(@D)/pig2vcd $(TARGET_DIR)/usr/bin/pig2vcd
+       $(INSTALL) -D -m 0755 $(@D)/pigpiod $(TARGET_DIR)/usr/bin/pigpiod
+       $(INSTALL) -D -m 0755 $(@D)/pigs $(TARGET_DIR)/usr/bin/pigs
+       $(INSTALL) -D -m 0755 $(@D)/libpigpio.so $(TARGET_DIR)/usr/lib/libpigpio.so
+       $(INSTALL) -D -m 0755 $(@D)/libpigpiod_if.so $(TARGET_DIR)/usr/lib/libpigpiod_if.so
+       $(INSTALL) -D -m 0755 $(@D)/libpigpiod_if2.so $(TARGET_DIR)/usr/lib/libpigpiod_if2.so
+endef
+
+$(eval $(generic-package))