From 3d4ab75229d8b83c6e05733f6aaba597b9de3b7e Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Mon, 11 Jun 2012 17:41:11 +0000 Subject: [PATCH] linux kernel headers: copy generated headers as well as they are referenced from other kernel headers, this seems like the best thing to do. Ubuntu seems to do so too. Fixes issues with nvidia's binary driver and bbswitch on kernels > 3.3 svn path=/nixpkgs/trunk/; revision=34469 --- pkgs/os-specific/linux/kernel/builder.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index 5d6d48d2fc3..4c095bf8bbc 100644 --- a/pkgs/os-specific/linux/kernel/builder.sh +++ b/pkgs/os-specific/linux/kernel/builder.sh @@ -138,6 +138,7 @@ installPhase() { (cd include && cp -a * $includeDir) (cd arch/$archDir/include && cp -a * $includeDir || true) (cd arch/$archDir/include && cp -a asm/* $includeDir/asm/ || true) + (cd arch/$archDir/include && cp -a generated/asm/* $includeDir/asm/ || true) (cd arch/$archDir/include/asm/mach-generic && cp -a * $includeDir/ || true) fi fi