about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel-headers
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/kernel-headers')
-rw-r--r--pkgs/os-specific/linux/kernel-headers/builder.sh23
1 files changed, 3 insertions, 20 deletions
diff --git a/pkgs/os-specific/linux/kernel-headers/builder.sh b/pkgs/os-specific/linux/kernel-headers/builder.sh
index b2ebbc6948533..05392d5fe24b6 100644
--- a/pkgs/os-specific/linux/kernel-headers/builder.sh
+++ b/pkgs/os-specific/linux/kernel-headers/builder.sh
@@ -1,26 +1,9 @@
 source $stdenv/setup
 
+patchPhase="sed -i '/scsi/d' include/Kbuild"
 
-buildPhase() {
-    make include/linux/version.h
-}
-
-buildPhase=buildPhase
-
-
-installPhase() {
-    mkdir $out
-    mkdir $out/include
-    cp -prvd include/linux include/asm-generic $out/include
-    cp -prvd include/asm-$platform $out/include
-    ln -s asm-$platform $out/include/asm
-    for i in $extraIncludeDirs; do
-	cp -prvd include/asm-$i $out/include
-    done
-    echo -n > $out/include/linux/autoconf.h
-}
-
-installPhase=installPhase
+buildPhase="make mrproper headers_check";
 
+installPhase="make INSTALL_HDR_PATH=$out headers_install"
 
 genericBuild