diff options
author | Thomas Orgis | 2017-02-05 16:58:22 +0100 |
---|---|---|
committer | Thomas Orgis | 2017-02-05 16:58:33 +0100 |
commit | 701865c74794dfb54fa1dd1c62f5b2dc744aa2ec (patch) | |
tree | 44df9744cf04065bee9d9418b02aab721155bc4b | |
parent | e643e31d00c9a6cf3690ef7447cf77a2c17ef8b0 (diff) |
lirc: optionally support the irdroid irtoy clone
-rwxr-xr-x | kernels/lirc/CONFIGURE | 3 | ||||
-rwxr-xr-x | kernels/lirc/DETAILS | 1 | ||||
-rw-r--r-- | kernels/lirc/HISTORY | 5 | ||||
-rwxr-xr-x | kernels/lirc/PRE_BUILD | 26 |
4 files changed, 35 insertions, 0 deletions
diff --git a/kernels/lirc/CONFIGURE b/kernels/lirc/CONFIGURE new file mode 100755 index 0000000000..ebd3e922fb --- /dev/null +++ b/kernels/lirc/CONFIGURE @@ -0,0 +1,3 @@ +# The irdroid clone device chokes on the LED commands, and they +# are not essential to proper irtoy, neither. +config_query IRDROID "Support irdroid in irtoy plugin by disabling the debugging LEDs?" n diff --git a/kernels/lirc/DETAILS b/kernels/lirc/DETAILS index 1005f5c7f3..fd45720c15 100755 --- a/kernels/lirc/DETAILS +++ b/kernels/lirc/DETAILS @@ -1,5 +1,6 @@ SPELL=lirc VERSION=0.9.4d + PATCHLEVEL=1 SOURCE_HASH=sha512:b3eb9f34994d389f2f84a3e0c7374e3fc555e5bcb499e6c0edf6d4d5ebdf5d72c52468abe335d34e420dd7cd775a42240810537fdb284af85453f5bd32069651 # Upstream messed up, there is no 0.9.4d.tar.bz2 . SOURCE=$SPELL-$VERSION.tar.gz diff --git a/kernels/lirc/HISTORY b/kernels/lirc/HISTORY index b74dbaccdc..a0cb9dda9b 100644 --- a/kernels/lirc/HISTORY +++ b/kernels/lirc/HISTORY @@ -1,3 +1,8 @@ +2017-02-05 Thomas Orgis <sobukus@sourcemage.org> + * CONFIGURE, PRE_BUILD: Add optional patch to make irdroid hardware + work. + * DETAILS: ++PATCHLEVEL + 2017-02-04 Thomas Orgis <sobukus@sourcemage.org> * DETAILS: version 0.9.4d * DEPENDS: needs pyyaml, added note about broken lirc-setup (our fault) diff --git a/kernels/lirc/PRE_BUILD b/kernels/lirc/PRE_BUILD new file mode 100755 index 0000000000..214ee08365 --- /dev/null +++ b/kernels/lirc/PRE_BUILD @@ -0,0 +1,26 @@ +default_pre_build && +cd "$SOURCE_DIRECTORY" && +if [[ $IRDROID == y ]]; then + patch -Np1 <<EOT +--- lirc-0.9.4d/plugins/irtoy.c.orig 2017-01-23 10:23:38.000000000 +0100 ++++ lirc-0.9.4d/plugins/irtoy.c 2017-02-05 16:42:19.203099837 +0100 +@@ -171,13 +171,16 @@ + static int setPin(unsigned int pin, int state) + { + unsigned int mask = 1 << pin; +- ++#if 0 + IOdirections &= ~mask; + if (state) + IOdata |= mask; + else + IOdata &= ~mask; + return setIOData(); ++#else ++ return 0; ++#endif + } + + static ssize_t +EOT +fi |