mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #1290 from HiassofT/le8-lirc
backport of #1281 (fix lirc cross-compilation and non-working left/right keys)
This commit is contained in:
commit
858b653a36
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user