update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
From c861eae83bae3116d330efb3c6061e2de4fdcbce Mon Sep 17 00:00:00 2001
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Sun, 5 Apr 2015 22:26:12 +0300
|
||||
Subject: [PATCH] tools: make_rel_symlink.py can also use python2
|
||||
|
||||
The make_rel_symlink.py script is compatible with both python2 and python3.
|
||||
Don't hard code a requirement for python3.
|
||||
|
||||
Patch status: sent upstream
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
tools/make_rel_symlink.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/make_rel_symlink.py b/tools/make_rel_symlink.py
|
||||
index 896637ff93e0..ff0403a0397a 100755
|
||||
--- a/tools/make_rel_symlink.py
|
||||
+++ b/tools/make_rel_symlink.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python3
|
||||
+#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import os.path
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
From e654ae139cec42a6f1b5684261787d0c241cfd3b Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 19 Aug 2016 15:25:48 +0200
|
||||
Subject: [PATCH] configure: check for clock_gettime in librt
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
configure.ac | 3 +++
|
||||
daemons/Makefile.am | 2 +-
|
||||
plugins/Makefile.am | 1 +
|
||||
3 files changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 73340c7..466e638 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -67,6 +67,9 @@ AC_CHECK_FUNCS(gethostname gettimeofday mkfifo select socket strdup \
|
||||
AC_SEARCH_LIBS([dlopen], [dl dld], [], [
|
||||
AC_MSG_ERROR([unable to find the dlopen() function])
|
||||
])
|
||||
+# glibc < 2.17 needs librt for clock_gettime()
|
||||
+AC_CHECK_LIB(rt, clock_gettime, LIBCLOCK_GETTIME="-lrt")
|
||||
+AC_SUBST(LIBCLOCK_GETTIME)
|
||||
AC_CHECK_FUNCS(daemon)
|
||||
if test "$ac_cv_func_daemon" != yes; then
|
||||
daemon=""
|
||||
diff --git a/daemons/Makefile.am b/daemons/Makefile.am
|
||||
index 5625627..85a28f3 100644
|
||||
--- a/daemons/Makefile.am
|
||||
+++ b/daemons/Makefile.am
|
||||
@@ -21,7 +21,7 @@ sbin_PROGRAMS += lircd-uinput
|
||||
endif
|
||||
|
||||
lircd_SOURCES = lircd.cpp
|
||||
-lircd_LDADD = ../lib/liblirc.la
|
||||
+lircd_LDADD = ../lib/liblirc.la @LIBCLOCK_GETTIME@
|
||||
|
||||
lircd_uinput_SOURCES = lircd-uinput.cpp
|
||||
lircd_uinput_LDADD = ../lib/liblirc.la
|
||||
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
|
||||
index ddff01d..45c012a 100644
|
||||
--- a/plugins/Makefile.am
|
||||
+++ b/plugins/Makefile.am
|
||||
@@ -127,6 +127,7 @@ zotac_la_SOURCES = zotac.c
|
||||
|
||||
plugin_LTLIBRARIES += mplay.la
|
||||
mplay_la_SOURCES = mplay.c
|
||||
+mplay_la_LIBADD = @LIBCLOCK_GETTIME@
|
||||
endif
|
||||
|
||||
$(srcdir)/pluginlist.am:
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
From 45c590f64dd79e8e1704d5c94ce3456a5cdbfa5f Mon Sep 17 00:00:00 2001
|
||||
From: Alec Leamas <leamas.alec@gmail.com>
|
||||
Date: Fri, 19 Aug 2016 04:48:02 +0200
|
||||
Subject: [PATCH] lircd: Remove use of functions killed in kernel 4.8.0
|
||||
|
||||
From 4.8.0 the kernel no longer supports LIRC_NOTIFY_DECODE,
|
||||
LIRC_SETUP_START/LIRC_SETUP_END and several constants related
|
||||
to initiating filters. Remove corresponding calls from lircd.
|
||||
|
||||
[baruch: move DRVCTL_NOTIFY_DECODE into lircd.cpp]
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Patch status: backported from upstream 31fcc8aa39f62c5c
|
||||
---
|
||||
daemons/lircd.cpp | 53 ++++-------------------------------------------------
|
||||
1 file changed, 4 insertions(+), 49 deletions(-)
|
||||
|
||||
diff --git a/daemons/lircd.cpp b/daemons/lircd.cpp
|
||||
index 782b6d3f8342..d778aa19308b 100644
|
||||
--- a/daemons/lircd.cpp
|
||||
+++ b/daemons/lircd.cpp
|
||||
@@ -78,6 +78,8 @@
|
||||
#define lirc_gid gid_t
|
||||
#endif
|
||||
|
||||
+#define DRVCTL_NOTIFY_DECODE 7
|
||||
+
|
||||
#ifdef DARWIN
|
||||
#include <mach/mach_time.h>
|
||||
#define CLOCK_REALTIME 0
|
||||
@@ -462,50 +464,6 @@ static int setup_timeout(void)
|
||||
}
|
||||
|
||||
|
||||
-static int setup_filter(void)
|
||||
-{
|
||||
- int ret1, ret2;
|
||||
- lirc_t min_pulse_supported = 0, max_pulse_supported = 0;
|
||||
- lirc_t min_space_supported = 0, max_space_supported = 0;
|
||||
-
|
||||
- if (!(curr_driver->features & LIRC_CAN_SET_REC_FILTER))
|
||||
- return 1;
|
||||
- if (curr_driver->drvctl_func(LIRC_GET_MIN_FILTER_PULSE,
|
||||
- &min_pulse_supported) == -1 ||
|
||||
- curr_driver->drvctl_func(LIRC_GET_MAX_FILTER_PULSE, &max_pulse_supported) == -1
|
||||
- || curr_driver->drvctl_func(LIRC_GET_MIN_FILTER_SPACE, &min_space_supported) == -1
|
||||
- || curr_driver->drvctl_func(LIRC_GET_MAX_FILTER_SPACE, &max_space_supported) == -1) {
|
||||
- log_error("could not get filter range");
|
||||
- log_perror_err(__func__);
|
||||
- }
|
||||
-
|
||||
- if (setup_min_pulse > max_pulse_supported)
|
||||
- setup_min_pulse = max_pulse_supported;
|
||||
- else if (setup_min_pulse < min_pulse_supported)
|
||||
- setup_min_pulse = 0; /* disable filtering */
|
||||
-
|
||||
- if (setup_min_space > max_space_supported)
|
||||
- setup_min_space = max_space_supported;
|
||||
- else if (setup_min_space < min_space_supported)
|
||||
- setup_min_space = 0; /* disable filtering */
|
||||
-
|
||||
- ret1 = curr_driver->drvctl_func(LIRC_SET_REC_FILTER_PULSE, &setup_min_pulse);
|
||||
- ret2 = curr_driver->drvctl_func(LIRC_SET_REC_FILTER_SPACE, &setup_min_space);
|
||||
- if (ret1 == -1 || ret2 == -1) {
|
||||
- if (curr_driver->
|
||||
- drvctl_func(LIRC_SET_REC_FILTER,
|
||||
- setup_min_pulse < setup_min_space ? &setup_min_pulse : &setup_min_space) == -1) {
|
||||
- log_error("could not set filter");
|
||||
- log_perror_err(__func__);
|
||||
- return 0;
|
||||
- }
|
||||
- }
|
||||
- return 1;
|
||||
-}
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
static int setup_hardware(void)
|
||||
{
|
||||
int ret = 1;
|
||||
@@ -514,10 +472,7 @@ static int setup_hardware(void)
|
||||
if ((curr_driver->features & LIRC_CAN_SET_REC_CARRIER)
|
||||
|| (curr_driver->features & LIRC_CAN_SET_REC_TIMEOUT)
|
||||
|| (curr_driver->features & LIRC_CAN_SET_REC_FILTER)) {
|
||||
- (void)curr_driver->drvctl_func(LIRC_SETUP_START, NULL);
|
||||
- ret = setup_frequency() && setup_timeout()
|
||||
- && setup_filter();
|
||||
- (void)curr_driver->drvctl_func(LIRC_SETUP_END, NULL);
|
||||
+ ret = setup_frequency() && setup_timeout();
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
@@ -2162,7 +2117,7 @@ void loop(void)
|
||||
int reps;
|
||||
|
||||
if (curr_driver->drvctl_func && (curr_driver->features & LIRC_CAN_NOTIFY_DECODE))
|
||||
- curr_driver->drvctl_func(LIRC_NOTIFY_DECODE, NULL);
|
||||
+ curr_driver->drvctl_func(DRVCTL_NOTIFY_DECODE, NULL);
|
||||
|
||||
get_release_data(&remote_name, &button_name, &reps);
|
||||
|
||||
--
|
||||
2.9.3
|
||||
|
||||
24
bsp/buildroot-2017.02.11/package/lirc-tools/Config.in
Normal file
24
bsp/buildroot-2017.02.11/package/lirc-tools/Config.in
Normal file
@@ -0,0 +1,24 @@
|
||||
config BR2_PACKAGE_LIRC_TOOLS
|
||||
bool "lirc-tools"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
# dlopen()
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
LIRC is a package that supports receiving and sending IR
|
||||
signals of the most common IR remote controls. It contains a
|
||||
daemon that decodes and sends IR signals, a mouse daemon
|
||||
that translates IR signals to mouse movements and a couple
|
||||
of user programs that allow to control your computer with a
|
||||
remote control.
|
||||
|
||||
It requires the kernel LIRC interface driver, make sure to
|
||||
enable the kernel drivers to support your hardware.
|
||||
|
||||
http://www.lirc.org/
|
||||
|
||||
comment "lirc-tools needs a toolchain w/ threads, dynamic library, C++"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
|
||||
|| !BR2_INSTALL_LIBSTDCPP
|
||||
38
bsp/buildroot-2017.02.11/package/lirc-tools/S25lircd
Executable file
38
bsp/buildroot-2017.02.11/package/lirc-tools/S25lircd
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Start lirc
|
||||
#
|
||||
# Support for remotes - Add remotes to /etc/lirc/lircd.conf.d/
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting lirc: "
|
||||
mkdir -p /var/run/lirc
|
||||
ln -sf /var/run/lirc/lircd /dev/lircd
|
||||
start-stop-daemon -b -S -q -m -p /var/run/lirc.pid --exec /usr/sbin/lircd -- -n -O /etc/lirc/lirc_options.conf
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping lirc: "
|
||||
start-stop-daemon -K -q -p /var/run/lirc.pid
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
stop
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -0,0 +1,3 @@
|
||||
# hash from http://sourceforge.net/projects/lirc/files/LIRC/0.9.4b/
|
||||
sha1 7cb2867de1b486708781413aa33568e0612fb912 lirc-0.9.4b.tar.bz2
|
||||
md5 9e3f2869a47bbd7c973dd63f30c13fc2 lirc-0.9.4b.tar.bz2
|
||||
41
bsp/buildroot-2017.02.11/package/lirc-tools/lirc-tools.mk
Normal file
41
bsp/buildroot-2017.02.11/package/lirc-tools/lirc-tools.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# lirc-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIRC_TOOLS_VERSION = 0.9.4b
|
||||
LIRC_TOOLS_SOURCE = lirc-$(LIRC_TOOLS_VERSION).tar.bz2
|
||||
LIRC_TOOLS_SITE = http://downloads.sourceforge.net/project/lirc/LIRC/$(LIRC_TOOLS_VERSION)
|
||||
LIRC_TOOLS_LICENSE = GPLv2+
|
||||
LIRC_TOOLS_LICENSE_FILES = COPYING
|
||||
LIRC_TOOLS_DEPENDENCIES = host-libxslt host-pkgconf host-python3
|
||||
LIRC_TOOLS_INSTALL_STAGING = YES
|
||||
# 0002-configure-check-for-clock_gettime-in-librt.patch
|
||||
LIRC_TOOLS_AUTORECONF = YES
|
||||
|
||||
LIRC_TOOLS_CONF_ENV = XSLTPROC=yes
|
||||
LIRC_TOOLS_CONF_OPTS = --without-x
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
LIRC_TOOLS_DEPENDENCIES += udev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
||||
LIRC_TOOLS_DEPENDENCIES += alsa-lib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y)
|
||||
LIRC_TOOLS_DEPENDENCIES += libusb-compat
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
|
||||
LIRC_TOOLS_DEPENDENCIES += portaudio
|
||||
endif
|
||||
|
||||
define LIRC_TOOLS_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/lirc-tools/S25lircd \
|
||||
$(TARGET_DIR)/etc/init.d/S25lircd
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user