v4l-utils: add support for user keytables in /storage/.config/rc_keymaps

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-11-08 18:32:43 +01:00
parent 7a30bdab0d
commit cb4f28a577
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,3 @@
RC keymaps user config dir
put your own keymaps for ir-keytable in this directory

View File

@ -39,3 +39,11 @@ PKG_MAKEINSTALL_OPTS_TARGET="PREFIX=/usr -C utils/keytable"
make_target() {
make -C utils/keytable CFLAGS="$TARGET_CFLAGS"
}
post_makeinstall_target() {
rm -rf $INSTALL/etc/rc_keymaps
ln -sf /storage/.config/rc_keymaps $INSTALL/etc/rc_keymaps
mkdir -p $INSTALL/usr/config
cp -PR $PKG_DIR/config/* $INSTALL/usr/config
}