From ee72c533789c37866104f2f2fd7d6aaf9d922b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 18 Feb 2010 08:02:16 +0000 Subject: [PATCH] Trying to fix the non-cross kernel build. svn path=/nixpkgs/trunk/; revision=20090 --- pkgs/os-specific/linux/kernel/builder.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index aaf2e8d96605..75283e835de5 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