kumquat-buildroot/package/triggerhappy/triggerhappy.mk
Jörg Krause cc9304aa72 package/triggerhappy: bump to latest commit to fix runtime issue
Bump to latest commit to fix runtime issue with the Linux Kernel headers 4.4:
  Starting thd: Unable to parse trigger line: [..]

With version 4.4 of the Linux Kernel the input event codes are not defined in
'linux/input.h' anymore, but in a seperate header file
'linux/input-event-codes.h' leaving triggerhappys evtable_*.h header files
empty with no event codes defined.

This issue is fixed upstream by commit 7e5abc69f215678e93a6b999524981c8b40bdcd9
which also makes overwriting of the 'LINUX_INPUT_H' definition obsolet.

Tested with an internal Buildroot toolchain with Linux Kernel headers 4.4 and
an external Linaro ARM 2015.08 toolchain with Linux Kernel headers 4.0.

[Peter: add hash file]
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-01-19 22:53:59 +01:00

44 lines
1.5 KiB
Makefile

################################################################################
#
# triggerhappy
#
################################################################################
TRIGGERHAPPY_VERSION = 7e5abc69f215678e93a6b999524981c8b40bdcd9
TRIGGERHAPPY_SITE = $(call github,wertarbyte,triggerhappy,$(TRIGGERHAPPY_VERSION))
TRIGGERHAPPY_LICENSE = GPLv3+
TRIGGERHAPPY_LICENSE_FILES = COPYING
define TRIGGERHAPPY_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) thd th-cmd
endef
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
define TRIGGERHAPPY_INSTALL_UDEV_RULE
$(INSTALL) -D -m 0644 $(@D)/udev/triggerhappy-udev.rules \
$(TARGET_DIR)/lib/udev/rules.d/triggerhappy.rules
endef
endif
define TRIGGERHAPPY_INSTALL_TARGET_CMDS
$(INSTALL) -d $(TARGET_DIR)/etc/triggerhappy/triggers.d
$(INSTALL) -D -m 0755 $(@D)/thd $(TARGET_DIR)/usr/sbin/thd
$(INSTALL) -D -m 0755 $(@D)/th-cmd $(TARGET_DIR)/usr/sbin/th-cmd
$(TRIGGERHAPPY_INSTALL_UDEV_RULE)
endef
define TRIGGERHAPPY_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/triggerhappy/S10triggerhappy \
$(TARGET_DIR)/etc/init.d/S10triggerhappy
endef
define TRIGGERHAPPY_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/triggerhappy/triggerhappy.service \
$(TARGET_DIR)/usr/lib/systemd/system/triggerhappy.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -sf ../../../../usr/lib/systemd/system/triggerhappy.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/triggerhappy.service
endef
$(eval $(generic-package))