Skip to content
Permalink
Browse files

Merge pull request #1281 from HiassofT/le-lirc

fix lirc cross-compilation and non-working left/right keys
  • Loading branch information...
chewitt committed Feb 7, 2017
2 parents 3c2479d + d209f33 commit 1af6e3d2a30c95851a2fcaaa365052f390907fd8
@@ -2,7 +2,7 @@
Description=Eventlirc server daemon

[Service]
ExecStart=/usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/run/lirc/lircd --release=_UP
ExecStart=/usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/run/lirc/lircd
KillMode=process
TimeoutStopSec=1s

@@ -37,6 +37,12 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_forkpty=no \
--with-gnu-ld \
--without-x"

pre_configure_target() {
# patch lirc-make-devinput to use target kernel include
sed -e "s|/usr/include/linux/|${SYSROOT_PREFIX}/usr/include/linux/|g" \
-i ${ROOT}/${PKG_BUILD}/tools/lirc-make-devinput
}

post_makeinstall_target() {
rm -rf $INSTALL/usr/lib/systemd
rm -rf $INSTALL/lib
@@ -36,7 +36,7 @@ case "$ACTION" in
LIRCD_CONFIG="--driver=$DRIVER --device=/dev/$DEVICE"
LIRCD_CONFIG="$LIRCD_CONFIG --output=/run/lirc/lircd-$DEVICE"
LIRCD_CONFIG="$LIRCD_CONFIG --pidfile=/run/lirc/lircd-$DEVICE.pid"
LIRCD_CONFIG="$LIRCD_CONFIG --release=_UP"
LIRCD_CONFIG="$LIRCD_CONFIG --release=_LIRCUP"

if [ -e "/storage/.config/lircd.conf" ]; then
LIRCD_CONFIG="$LIRCD_CONFIG /storage/.config/lircd.conf"
@@ -4,7 +4,7 @@ Description=lircd-uinput with %I
ConditionPathExists=/storage/.cache/services/lircd.conf

[Service]
ExecStart=/usr/sbin/lircd-uinput /run/lirc/lircd-%I
ExecStart=/usr/sbin/lircd-uinput --release=_LIRCUP /run/lirc/lircd-%I
Slice=system-lircd.slice
Restart=on-failure
RestartSec=2

0 comments on commit 1af6e3d

Please sign in to comment.
You can’t perform that action at this time.