v4l-utils: apply rc_maps.cfg changes via package.mk instead of patch

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2017-12-21 12:07:22 +01:00
parent 55fb2e5bdb
commit 84e97c6cb9
2 changed files with 11 additions and 29 deletions

View File

@ -85,4 +85,15 @@ post_makeinstall_target() {
grep -v "^#" $INSTALL/usr/lib/udev/rc_keymaps/$f
done
) > $INSTALL/usr/lib/udev/rc_keymaps/libreelec_multi
# use multi-keymap instead of default one
sed -i '/^\*\s*rc-rc6-mce\s*rc6_mce/d' $INSTALL/etc/rc_maps.cfg
cat << EOF >> $INSTALL/etc/rc_maps.cfg
#
# Custom LibreELEC configuration starts here
#
# use combined multi-table on MCE receivers
# * rc-rc6-mce rc6_mce
* rc-rc6-mce libreelec_multi
EOF
}

View File

@ -1,29 +0,0 @@
diff --git a/utils/keytable/rc_maps.cfg b/utils/keytable/rc_maps.cfg
index e69fd6a..c0fe122 100644
--- a/utils/keytable/rc_maps.cfg
+++ b/utils/keytable/rc_maps.cfg
@@ -109,7 +109,9 @@
* rc-proteus-2309 proteus_2309
* rc-purpletv purpletv
* rc-pv951 pv951
-* rc-rc6-mce rc6_mce
+# use combined multi-table on MCE receivers
+#* rc-rc6-mce rc6_mce
+* rc-rc6-mce libreelec_multi
* rc-real-audio-220-32-keys real_audio_220_32_keys
* rc-reddo reddo
* rc-snapstream-firefly snapstream_firefly
@@ -136,6 +138,13 @@
* rc-videomate-tv-pvr videomate_tv_pvr
* rc-winfast-usbii-deluxe winfast_usbii_deluxe
* rc-winfast winfast
+# fake tables for LibreELEC keymaps
+* rc-cubox-i cubox-i
+* rc-hp-mce hp_mce
+* rc-samsung samsung
+* rc-xbox-360 xbox_360
+* rc-xbox-one xbox_one
+* rc-zotac-ad10 zotac_ad10
# * * a800 # found in a800.c
# * * af9005 # found in af9005-remote.c
# * * cinergyt2 # found in cinergyT2-core.c