6fdc039a01
Upstream wiringpi apparently has some issues with their release process: their 2.42 and 2.44 tags point to the exact same commit. And at the 2.44 tag, the VERSION file was not updated to indicate that it's version 2.44. A follow-up commit added support for the RPi Zero-W, and fixed the VERSION file to contain 2.44. So let's use this follow-up commit as the new version for wiringpi. This will hopefully clarify things, and avoid confusion such as the one reported in bug #10391 [1]. [1] https://bugs.busybox.net/show_bug.cgi?id=10391 Signed-off-by: Peter Seiderer <ps.report@gmx.net> [Thomas: rewrite commit log.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
48 lines
1.9 KiB
Makefile
48 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# wiringpi
|
|
#
|
|
################################################################################
|
|
|
|
# using git commit id instead of (wrong) 2.44 git tag (Bug 10391)
|
|
WIRINGPI_VERSION = 96344ff7125182989f98d3be8d111952a8f74e15
|
|
WIRINGPI_SITE = git://git.drogon.net/wiringPi
|
|
|
|
WIRINGPI_LICENSE = LGPL-3.0+
|
|
WIRINGPI_LICENSE_FILES = COPYING.LESSER
|
|
WIRINGPI_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
WIRINGPI_LIB_BUILD_TARGETS = static
|
|
WIRINGPI_LIB_INSTALL_TARGETS = install-static
|
|
WIRINGPI_BIN_BUILD_TARGETS = gpio-static
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
WIRINGPI_LIB_BUILD_TARGETS = all
|
|
WIRINGPI_LIB_INSTALL_TARGETS = install
|
|
WIRINGPI_BIN_BUILD_TARGETS = all
|
|
else
|
|
WIRINGPI_LIB_BUILD_TARGETS = all static
|
|
WIRINGPI_LIB_INSTALL_TARGETS = install install-static
|
|
WIRINGPI_BIN_BUILD_TARGETS = all
|
|
endif
|
|
|
|
define WIRINGPI_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/wiringPi $(WIRINGPI_LIB_BUILD_TARGETS)
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/devLib $(WIRINGPI_LIB_BUILD_TARGETS)
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/gpio $(WIRINGPI_BIN_BUILD_TARGETS)
|
|
endef
|
|
|
|
define WIRINGPI_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/wiringPi $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(STAGING_DIR) PREFIX=/usr LDCONFIG=true
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/devLib $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(STAGING_DIR) PREFIX=/usr LDCONFIG=true
|
|
endef
|
|
|
|
define WIRINGPI_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/wiringPi $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(TARGET_DIR) PREFIX=/usr LDCONFIG=true
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/devLib $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(TARGET_DIR) PREFIX=/usr LDCONFIG=true
|
|
$(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))
|