add new package 'wetekdvb', remove wetek dvb drivers, firmwares and systemd startscript

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2015-03-04 20:01:53 +01:00
parent b4ab1029ba
commit be445f0b4e
7 changed files with 53 additions and 14 deletions

View File

@ -0,0 +1,52 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC 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.
#
# OpenELEC 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 OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="wetekdvb"
PKG_VERSION="20150304"
PKG_REV="1"
PKG_ARCH="arm"
PKG_LICENSE="nonfree"
PKG_SITE="http://www.wetek.com/"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_PRIORITY="optional"
PKG_SECTION="driver"
PKG_SHORTDESC="wetekdvb: Wetek DVB driver"
PKG_LONGDESC="These package contains Wetek's DVB driver "
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
: # nothing todo
}
makeinstall_target() {
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
cp driver/*.ko $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
mkdir -p $INSTALL/lib/firmware
cp firmware/* $INSTALL/lib/firmware
}
post_makeinstall_target() {
# load wetekdvb driver by default, it cant be loaded via udev
mkdir -p $INSTALL/usr/lib/modules-load.d
echo "wetekdvb" > $INSTALL/usr/lib/modules-load.d/wetekdvb.conf
}

View File

@ -1,13 +0,0 @@
[Unit]
Description=WeTek DVB driver
DefaultDependencies=no
Before=local-fs.target shutdown.target
Conflicts=shutdown.target
[Service]
Type=oneshot
ExecStart=/sbin/insmod /lib/modules/wetekdvb.ko
RemainAfterExit=yes
[Install]
WantedBy=local-fs.target

View File

@ -117,7 +117,7 @@
# for a list of additinoal drivers see packages/linux-drivers
# Space separated list is supported,
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8188EU"
ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8188EU wetekdvb"
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
# Space separated list is supported,