[odroid-c1] Add udev rules to fix /dev/am* permissions

This commit is contained in:
Jan Holthuis 2015-01-31 17:27:53 +01:00
parent eaebce07ac
commit d0d8708d8e
2 changed files with 27 additions and 3 deletions

View file

@ -0,0 +1,18 @@
# Fix permissions for /dev/am* files
KERNEL=="amaudio_ctl", MODE="0666"
KERNEL=="amaudio_in", MODE="0666"
KERNEL=="amaudio_out", MODE="0666"
KERNEL=="amaudio_utils", MODE="0666"
KERNEL=="amhdmitx0", MODE="0666"
KERNEL=="amremote", MODE="0666"
KERNEL=="amstream_abuf", MODE="0666"
KERNEL=="amstream_hevc", MODE="0666"
KERNEL=="amstream_mpps", MODE="0666"
KERNEL=="amstream_mpts", MODE="0666"
KERNEL=="amstream_rm", MODE="0666"
KERNEL=="amstream_sub", MODE="0666"
KERNEL=="amstream_sub_read", MODE="0666"
KERNEL=="amstream_userdata", MODE="0666"
KERNEL=="amstream_vbuf", MODE="0666"
KERNEL=="amsubtitle", MODE="0666"
KERNEL=="amvideo", MODE="0666"

View file

@ -1,19 +1,22 @@
# ODROID-C1 Amlogic libraries
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com>
buildarch=4
pkgname=aml-libs-c1
pkgver=r11.820b12a
pkgrel=4
pkgrel=5
arch=('armv7h')
pkgdesc="ODROID-C1 Amlogic Libraries"
url="http://www.hardkernel.com/"
license=('Proprietary')
depends=('alsa-lib')
makedepends=('git')
source=("git+https://github.com/mdrjr/c1_aml_libs.git")
md5sums=('SKIP')
source=("git+https://github.com/mdrjr/c1_aml_libs.git"
'99-amlogic.rules')
md5sums=('SKIP'
'c8f7f6b83416768cc9424f7e7a372fa4')
pkgver() {
cd c1_aml_libs
@ -42,4 +45,7 @@ package() {
install -m644 amcodec/include/*.h "${pkgdir}/usr/include"
install -m644 amcodec/include/amports/*.h "${pkgdir}/usr/include/amports"
install -m644 amcodec/include/ppmgr/*.h "${pkgdir}/usr/include/ppmgr"
# install /dev/am* permission fix
install -Dm644 "${srcdir}/99-amlogic.rules" "${pkgdir}/usr/lib/udev/rules.d/99-amlogic.rules"
}