diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2006-07-28 13:29:33 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2006-07-28 13:29:33 +0000 |
commit | 6aca0d8f9df45f60a5ef8ae9cfedb2036fb4edfe (patch) | |
tree | 08676b4ab61c9ab679a01cc91e0c1ebcee1cc049 /pkgs/os-specific | |
parent | 559ea955a13c9f362e9f55de758a22ce3a05e7a9 (diff) |
more fixes
svn path=/nixpkgs/trunk/; revision=5985
Diffstat (limited to 'pkgs/os-specific')
-rwxr-xr-x | pkgs/os-specific/linux/kernelscripts/builder.sh | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/kernelscripts/builder.sh b/pkgs/os-specific/linux/kernelscripts/builder.sh index 56097f446ff59..9517844ee0571 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 |