summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
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