linux-firmware: rework firmware packages, we have our now our own firmware repos at https://github.com/OpenELEC/dvb-firmware and https://github.com/OpenELEC/wlan-firmware, this saves us much space again :-)

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-03-02 03:41:23 +01:00
parent 14ebb58d15
commit 123136a069
7 changed files with 24 additions and 76 deletions

View File

@ -1,38 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# This Program 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, or (at your option)
# any later version.
#
# This Program 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.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options
if [ "$FIRMWARE" = "external" ]; then
mkdir -p $INSTALL/lib/firmware
cp -R $PKG_BUILD/* $INSTALL/lib/firmware
fi
for firmware in $ADDITIONAL_FIRMWARE; do
[ $firmware = b43 ] && $SCRIPTS/install b43-fw
[ $firmware = ipw2100 ] && $SCRIPTS/install ipw2100-fw
[ $firmware = ipw2200 ] && $SCRIPTS/install ipw2200-fw
[ $firmware = zd1211 ] && $SCRIPTS/install zd1211-firmware
[ $firmware = dvb-firmware ] && $SCRIPTS/install linuxtv-dvb-firmware
done
exit 0

View File

@ -18,19 +18,19 @@
# http://www.gnu.org/copyleft/gpl.html
################################################################################
PKG_NAME="linux-firmware"
PKG_VERSION="20110222"
PKG_NAME="firmware"
PKG_VERSION=""
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree"
PKG_URL="http://www.kernel.org/pub/linux/kernel/people/dwmw2/firmware/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS=""
PKG_SITE=""
PKG_URL=""
PKG_DEPENDS="$FIRMWARE"
PKG_BUILD_DEPENDS="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="linux-firmware"
PKG_SHORTDESC="linux-firmware: various free firmware drivers"
PKG_LONGDESC="linux-firmware is a package to install various free firmware drivers"
PKG_SECTION="firmware"
PKG_SHORTDESC="firmware: various free firmware drivers"
PKG_LONGDESC="firmware is a meta-package to install various free firmware drivers"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

View File

@ -37,12 +37,10 @@ for i in `ls $INSTALL/lib/modules/*/modules.* | grep -v modules.dep | grep -v mo
rm -f $i
done
if [ "$FIRMWARE" = "internal" ]; then
# copy kernel firmwares (if present and requested)
mkdir -p $INSTALL/lib/firmware
[ -d $PKG_BUILD/modules/lib/firmware ] && \
cp -rf $PKG_BUILD/modules/lib/firmware/* $INSTALL/lib/firmware || true
fi
# copy kernel firmwares (if present and requested)
mkdir -p $INSTALL/lib/firmware
[ -d $PKG_BUILD/modules/lib/firmware ] && \
cp -rf $PKG_BUILD/modules/lib/firmware/* $INSTALL/lib/firmware || true
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/modules $INSTALL/etc

View File

@ -181,13 +181,10 @@
# "none" for disable LCD support
LCD_DRIVER="none"
# build internal (in Kernel) or external Firmware (internal / external)"
FIRMWARE="external"
# additional Firmware to use (dvb-firmware, b43, ipw2100, ipw2200, zd1211)
# additional Firmware to use (dvb-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware b43"
ADDITIONAL_FIRMWARE="dvb-firmware zd1211"
# e.g. FIRMWARE="dvb-firmware, wlan-firmware"
FIRMWARE="dvb-firmware wlan-firmware"
# build with lm_sensors hardware monitoring support (yes / no)
SENSOR_SUPPORT="yes"

View File

@ -181,13 +181,10 @@
# "none" for disable LCD support
LCD_DRIVER="irtrans,imon"
# build internal (in Kernel) or external Firmware (internal / external)"
FIRMWARE="external"
# additional Firmware to use (dvb-firmware, b43, ipw2100, ipw2200, zd1211)
# additional Firmware to use (dvb-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware b43"
ADDITIONAL_FIRMWARE="b43 ipw2100 ipw2200 dvb-firmware zd1211"
# e.g. FIRMWARE="dvb-firmware, wlan-firmware"
FIRMWARE="dvb-firmware wlan-firmware"
# build with lm_sensors hardware monitoring support (yes / no)
SENSOR_SUPPORT="yes"

View File

@ -181,13 +181,10 @@
# "none" for disable LCD support
LCD_DRIVER="irtrans,imon"
# build internal (in Kernel) or external Firmware (internal / external)"
FIRMWARE="external"
# additional Firmware to use (dvb-firmware, b43, ipw2100, ipw2200, zd1211)
# additional Firmware to use (dvb-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware, b43"
ADDITIONAL_FIRMWARE="dvb-firmware zd1211"
# e.g. FIRMWARE="dvb-firmware, wlan-firmware"
FIRMWARE="dvb-firmware wlan-firmware"
# build with lm_sensors hardware monitoring support (yes / no)
SENSOR_SUPPORT="yes"

View File

@ -181,13 +181,10 @@
# "none" for disable LCD support
LCD_DRIVER="irtrans,imon"
# build internal (in Kernel) or external Firmware (internal / external)"
FIRMWARE="external"
# additional Firmware to use (dvb-firmware, b43, ipw2100, ipw2200, zd1211)
# additional Firmware to use (dvb-firmware, wlan-firmware)
# Space separated list is supported,
# e.g. FIRMWARE="dvb-firmware b43"
ADDITIONAL_FIRMWARE="b43 dvb-firmware zd1211"
# e.g. FIRMWARE="dvb-firmware, wlan-firmware"
FIRMWARE="dvb-firmware wlan-firmware"
# build with lm_sensors hardware monitoring support (yes / no)
SENSOR_SUPPORT="yes"