summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-02-18 08:02:16 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-02-18 08:02:16 +0000
commitee72c533789c37866104f2f2fd7d6aaf9d922b5d (patch)
tree97d836c9622dbc6c206abe8b7fd56a27ad2646b3 /pkgs/os-specific/linux
parentf57a5d227349906d4d85f7d6fd976374d9492be7 (diff)
downloadnixpkgs-ee72c533789c37866104f2f2fd7d6aaf9d922b5d.tar
nixpkgs-ee72c533789c37866104f2f2fd7d6aaf9d922b5d.tar.gz
nixpkgs-ee72c533789c37866104f2f2fd7d6aaf9d922b5d.tar.bz2
nixpkgs-ee72c533789c37866104f2f2fd7d6aaf9d922b5d.tar.lz
nixpkgs-ee72c533789c37866104f2f2fd7d6aaf9d922b5d.tar.xz
nixpkgs-ee72c533789c37866104f2f2fd7d6aaf9d922b5d.tar.zst
nixpkgs-ee72c533789c37866104f2f2fd7d6aaf9d922b5d.zip
Trying to fix the non-cross kernel build.
svn path=/nixpkgs/trunk/; revision=20090
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/kernel/builder.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh
index aaf2e8d9660..75283e835de 100644
--- a/pkgs/os-specific/linux/kernel/builder.sh
+++ b/pkgs/os-specific/linux/kernel/builder.sh
@@ -78,7 +78,11 @@ installPhase() {
 
     # Strip the kernel modules.
     echo "Stripping kernel modules..."
-    find $out -name "*.ko" -print0 | xargs -0 $crossConfig-strip -S
+    if [ -z "$crossConfig" ]; then
+        find $out -name "*.ko" -print0 | xargs -0 strip -S
+    else
+        find $out -name "*.ko" -print0 | xargs -0 $crossConfig-strip -S
+    fi
 
     # move this to install later on
     # largely copied from early FC3 kernel spec files