compile with the right kernel, mark the compilation as b0rken (because it

is and needs more investigation)

svn path=/nixpkgs/trunk/; revision=5726
This commit is contained in:
Armijn Hemel 2006-07-17 07:49:17 +00:00
parent e2d170f18e
commit 1fc6ce85c4
3 changed files with 25 additions and 1 deletions

View File

@ -16,3 +16,7 @@ export version
ensureDir $out/lib/modules/$version/kernel/drivers/usb/media/
genericBuild
echo "b0rken"
exit 1

View File

@ -7,7 +7,7 @@ stdenv.mkDerivation {
url = http://www.ovcam.org/ov511/download/2.xx/distros/ov511-2.32.tar.bz2;
md5 = "6a08025311649356242761641a1df0f2";
};
patches = [./ov511-kernel.patch ./ov511-2.32.patch];
patches = [./ov511-kernel.patch ./ov511-2.32.patch ./ov511-2.32-kdir.patch];
inherit kernel;
NIX_GLIBC_FLAGS_SET=1;
}

View File

@ -0,0 +1,20 @@
diff -rc ov511-2.32/Makefile ov511-2.32.new/Makefile
*** ov511-2.32/Makefile 2006-03-28 17:47:31.000000000 +0200
--- ov511-2.32.new/Makefile 2006-07-17 09:46:17.000000000 +0200
***************
*** 114,120 ****
else # We were called from command line
! KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
--- 114,120 ----
else # We were called from command line
! KDIR := $(kernel)/lib/modules/$(version)/build
PWD := $(shell pwd)
default: