* Use fxload.
svn path=/nixpkgs/branches/stdenv-updates/; revision=10580
This commit is contained in:
parent
703135a4de
commit
6edb12e639
@ -1,7 +1,7 @@
|
|||||||
{stdenv, fetchurl, kernel, ncurses}:
|
{stdenv, fetchurl, kernel, ncurses, fxload}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "wis-go7007-linux-0.9.8";
|
name = "wis-go7007-0.9.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://gentoo.osuosl.org/distfiles/wis-go7007-linux-0.9.8.tar.bz2;
|
url = http://gentoo.osuosl.org/distfiles/wis-go7007-linux-0.9.8.tar.bz2;
|
||||||
@ -35,17 +35,23 @@ stdenv.mkDerivation {
|
|||||||
#includeDir=$out/lib/modules/$kernelVersion/source/include/linux
|
#includeDir=$out/lib/modules/$kernelVersion/source/include/linux
|
||||||
includeDir=$TMPDIR/scratch
|
includeDir=$TMPDIR/scratch
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace '$(DESTDIR)$(KSRC)/include/linux' $includeDir
|
--replace '$(DESTDIR)$(KSRC)/include/linux' $includeDir \
|
||||||
|
--replace '$(DESTDIR)$(FIRMWARE_DIR)' '$(FIRMWARE_DIR)'
|
||||||
ensureDir $includeDir
|
ensureDir $includeDir
|
||||||
ensureDir $out/etc/hotplug/usb
|
ensureDir $out/etc/hotplug/usb
|
||||||
ensureDir $out/etc/udev/rules.d
|
ensureDir $out/etc/udev/rules.d
|
||||||
|
|
||||||
makeFlagsArray=(KERNELSRC=$kernelSource \
|
makeFlagsArray=(KERNELSRC=$kernelSource \
|
||||||
FIRMWARE_DIR=/firmware FXLOAD=false \
|
FIRMWARE_DIR=$out/firmware FXLOAD=${fxload}/sbin/fxload \
|
||||||
DESTDIR=$out SKIP_DEPMOD=1 \
|
DESTDIR=$out SKIP_DEPMOD=1 \
|
||||||
USE_UDEV=y)
|
USE_UDEV=y)
|
||||||
''; # */
|
''; # */
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
ensureDir $out/bin
|
||||||
|
cp apps/gorecord apps/modet $out/bin/
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Kernel module for the Micronas GO7007, used in a number of USB TV devices";
|
description = "Kernel module for the Micronas GO7007, used in a number of USB TV devices";
|
||||||
homepage = http://oss.wischip.com/;
|
homepage = http://oss.wischip.com/;
|
||||||
|
@ -3747,7 +3747,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
wis_go7007 = import ../os-specific/linux/wis-go7007 {
|
wis_go7007 = import ../os-specific/linux/wis-go7007 {
|
||||||
inherit fetchurl stdenv kernel ncurses;
|
inherit fetchurl stdenv kernel ncurses fxload;
|
||||||
};
|
};
|
||||||
|
|
||||||
wpa_supplicant = import ../os-specific/linux/wpa_supplicant {
|
wpa_supplicant = import ../os-specific/linux/wpa_supplicant {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user