From 6aca0d8f9df45f60a5ef8ae9cfedb2036fb4edfe Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Fri, 28 Jul 2006 13:29:33 +0000 Subject: [PATCH] more fixes svn path=/nixpkgs/trunk/; revision=5985 --- .../linux/kernelscripts/builder.sh | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/os-specific/linux/kernelscripts/builder.sh b/pkgs/os-specific/linux/kernelscripts/builder.sh index 56097f446ff..9517844ee05 100755 --- a/pkgs/os-specific/linux/kernelscripts/builder.sh +++ b/pkgs/os-specific/linux/kernelscripts/builder.sh @@ -8,24 +8,27 @@ mkdir -p $out/lib/modules/$kernelVersion cd $kernel -# making kernel directories +echo making kernel directories find . -not -path "./lib/modules/$kernelVersion/build*" -type d | xargs -n 1 -i% mkdir -p $out/% -# symlinking kernel modules +echo symlinking kernel modules find . -not -path "./lib/modules/$kernelVersion/build*" -a -not -path \ "./System*" -a -not -path "./vmlinuz*" -type f | xargs -n 1 -i% \ ln -s $kernel/% $out/% -# echo making ov511 directories +echo $modules +for i in $modules; do + echo making directories for $i + cd $i + find . -not -path "./lib/modules/$kernelVersion/build*" -type d | xargs -n 1 -i% mkdir -p $out/% -# cd $ov511 -# @findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $out/% -# -# echo symlinking ov511 modules -# -# @findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type f | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/ln -s $ov511/% $out/% + echo symlinking modules for $i -# running depmod + find . -not -path "./lib/modules/$kernelVersion/build*" -type f | xargs -n 1 -i% ln -s $i/% $out/% + +done + +echo running depmod $module_init_tools/sbin/depmod -ae $kernelVersion