forked from kszaq/LibreELEC.tv
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dvb_tv-aml: add DVB driver from afl1
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
10
packages/linux-drivers/dvb_tv-aml/system.d/amlogic-dvb.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |