Skip to content

Commit

Permalink
dvb_tv-aml: add DVB driver from afl1
Browse files Browse the repository at this point in the history
  • Loading branch information
kszaq authored and RealJohnGalt committed Jun 21, 2017
1 parent 5822eb2 commit 102c3ca
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
45 changes: 45 additions & 0 deletions packages/linux-drivers/dvb_tv-aml/package.mk
@@ -0,0 +1,45 @@
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2017 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="dvb_tv-aml"
PKG_VERSION="b79c56d"
PKG_REV="1"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/kszaq/dvb_tv-aml"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="$PKG_NAME-$PKG_VERSION*"
PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="driver"
PKG_SHORTDESC="dvb_tv-aml: Internal DVB tuner driver for Amlogic devices developed by afl1"
PKG_LONGDESC="dvb_tv-aml: Internal DVB tuner driver for Amlogic devices developed by afl1"

PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

make_target() {
: # nop
}

makeinstall_target() {
: # nop
}

post_install() {
enable_service amlogic-dvb.service
}
10 changes: 10 additions & 0 deletions packages/linux-drivers/dvb_tv-aml/system.d/amlogic-dvb.service
@@ -0,0 +1,10 @@
[Unit]
Description=Amlogic DVB module loader
ConditionPathExists=/proc/device-tree/dvbfe/dtv_demod0

[Service]
Type=simple
ExecStart=/bin/sh -c '[ `cat /proc/device-tree/dvbfe/dtv_demod0` = "Avl6211" ] && /sbin/modprobe aml_fe'

[Install]
WantedBy=basic.target

0 comments on commit 102c3ca

Please sign in to comment.