Import buildroot 2016.02.01
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
From ae2e8cc85b6b4d2202e42d704dde8757ffd31da6 Mon Sep 17 00:00:00 2001
|
||||
From: Alec Leamas <leamas.alec@gmail.com>
|
||||
Date: Thu, 11 Dec 2014 04:44:49 +0100
|
||||
Subject: [PATCH] tools: Make make_rel_symlink.py use python3.
|
||||
|
||||
Upstream patch:
|
||||
http://sourceforge.net/p/lirc/git/ci/ae2e8cc85b6b4d2202e42d704dde8757ffd31da6/
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
tools/make_rel_symlink.py | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/tools/make_rel_symlink.py b/tools/make_rel_symlink.py
|
||||
index 5c893056f379..896637ff93e0 100755
|
||||
--- a/tools/make_rel_symlink.py
|
||||
+++ b/tools/make_rel_symlink.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import os.path
|
||||
@@ -32,16 +32,16 @@ if sys.argv[1] == "-p":
|
||||
sys.argv = sys.argv[ 1:]
|
||||
|
||||
if len( sys.argv ) != 3:
|
||||
- print USAGE
|
||||
+ print(USAGE)
|
||||
sys.exit( 1 )
|
||||
|
||||
if os.path.isdir( sys.argv[2] ):
|
||||
- print "Removing link target dir:" + sys.argv[2]
|
||||
+ print("Removing link target dir:" + sys.argv[2])
|
||||
shutil.rmtree( sys.argv[2])
|
||||
|
||||
link_path = relative_ln_s( sys.argv[1], sys.argv[2] )
|
||||
if just_print:
|
||||
- print link_path
|
||||
+ print(link_path)
|
||||
else:
|
||||
os.chdir( os.path.dirname( sys.argv[2]))
|
||||
target = os.path.basename( sys.argv[2])
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -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,49 @@
|
||||
From 2a789161ef17ac1cedd9a4eb11423f6c1020d8d9 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 17 May 2015 16:08:15 +0200
|
||||
Subject: [PATCH] Fix loglevel redefinition in static library builds
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
daemons/lircmd.c | 1 -
|
||||
tools/irrecord.c | 5 ++---
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/daemons/lircmd.c b/daemons/lircmd.c
|
||||
index 023777c..e69078c 100644
|
||||
--- a/daemons/lircmd.c
|
||||
+++ b/daemons/lircmd.c
|
||||
@@ -67,7 +67,6 @@ typedef uint64_t __u64;
|
||||
|
||||
static int uinputfd = -1;
|
||||
static int useuinput = 0;
|
||||
-loglevel_t loglevel = 0;
|
||||
|
||||
|
||||
static const struct option lircmd_options[] = {
|
||||
diff --git a/tools/irrecord.c b/tools/irrecord.c
|
||||
index f52328c..772b090 100644
|
||||
--- a/tools/irrecord.c
|
||||
+++ b/tools/irrecord.c
|
||||
@@ -113,9 +113,6 @@ lirc_t aeps = 100;
|
||||
|
||||
#define SAMPLES 80
|
||||
|
||||
-// Actual loglevel as per -D option, see lirc_log.h.
|
||||
-loglevel_t loglevel = LIRC_WARNING;
|
||||
-
|
||||
int daemonized = 0;
|
||||
|
||||
struct ir_remote *emulation_data;
|
||||
@@ -407,6 +404,8 @@ int main(int argc, char **argv)
|
||||
char commandline[128];
|
||||
char path[128];
|
||||
int get_pre = 0, get_post = 0, test = 0, invert = 0, trail = 0;
|
||||
+ // Actual loglevel as per -D option, see lirc_log.h.
|
||||
+ loglevel_t loglevel = LIRC_WARNING;
|
||||
|
||||
get_commandline(argc, argv, commandline, sizeof(commandline));
|
||||
force = 0;
|
||||
--
|
||||
2.1.0
|
||||
|
||||
24
firmware/buildroot/package/lirc-tools/Config.in
Normal file
24
firmware/buildroot/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_TOOLCHAIN_USES_MUSL # GLOB_BRACE
|
||||
# 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 uClibc or (e)glibc toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
|
||||
|| BR2_TOOLCHAIN_USES_MUSL
|
||||
38
firmware/buildroot/package/lirc-tools/S25lircd
Executable file
38
firmware/buildroot/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 $?
|
||||
2
firmware/buildroot/package/lirc-tools/lirc-tools.hash
Normal file
2
firmware/buildroot/package/lirc-tools/lirc-tools.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
#hash from http://sourceforge.net/projects/lirc/files/LIRC/0.9.2/
|
||||
sha1 585daed1eaa169b9683a507e26b1331a947a4dcd lirc-0.9.2.tar.bz2
|
||||
21
firmware/buildroot/package/lirc-tools/lirc-tools.mk
Normal file
21
firmware/buildroot/package/lirc-tools/lirc-tools.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
#
|
||||
# lirc-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIRC_TOOLS_VERSION = 0.9.2
|
||||
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-pkgconf
|
||||
|
||||
LIRC_TOOLS_CONF_OPTS = --without-x
|
||||
|
||||
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