2016-06-03 20:10:33 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# wiringpi
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-06-22 09:33:33 +02:00
|
|
|
WIRINGPI_VERSION = 2.46
|
2016-10-21 21:10:12 +02:00
|
|
|
WIRINGPI_SITE = git://git.drogon.net/wiringPi
|
2016-06-03 20:10:33 +02:00
|
|
|
|
2017-03-30 15:43:35 +02:00
|
|
|
WIRINGPI_LICENSE = LGPL-3.0+
|
2016-06-03 20:10:33 +02:00
|
|
|
WIRINGPI_LICENSE_FILES = COPYING.LESSER
|
|
|
|
WIRINGPI_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
define WIRINGPI_BUILD_CMDS
|
2018-06-27 21:21:50 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/wiringPi all
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/devLib all
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/gpio all
|
2016-06-03 20:10:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define WIRINGPI_INSTALL_STAGING_CMDS
|
2018-06-27 21:21:50 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/wiringPi install DESTDIR=$(STAGING_DIR) PREFIX=/usr LDCONFIG=true
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/devLib install DESTDIR=$(STAGING_DIR) PREFIX=/usr LDCONFIG=true
|
2016-06-03 20:10:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define WIRINGPI_INSTALL_TARGET_CMDS
|
2018-06-27 21:21:50 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/wiringPi install DESTDIR=$(TARGET_DIR) PREFIX=/usr LDCONFIG=true
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/devLib install DESTDIR=$(TARGET_DIR) PREFIX=/usr LDCONFIG=true
|
2016-06-03 20:10:33 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/gpio/gpio $(TARGET_DIR)/usr/bin/gpio
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/gpio/pintest $(TARGET_DIR)/usr/bin/pintest
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|