pigpio: new package
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>
This commit is contained in:
parent
f0b5c2b8e3
commit
a3fb16a0ff
|
@ -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/
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
13
package/pigpio/Config.in
Normal file
13
package/pigpio/Config.in
Normal file
|
@ -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
|
3
package/pigpio/pigpio.hash
Normal file
3
package/pigpio/pigpio.hash
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Locally calculated
|
||||
sha256 4255310dd11ed81035b60711becad081a1eaad2905f704e3eb84e692ca7e4c3d pigpio-V67.tar.gz
|
||||
sha256 6a90b88421a0d9b090e121daa11b3c6d55eed5eeb3281a2fcc454d6a28b5547c UNLICENCE
|
25
package/pigpio/pigpio.mk
Normal file
25
package/pigpio/pigpio.mk
Normal file
|
@ -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))
|
Loading…
Reference in a new issue