2006-07-28 15:17:09 +02:00
|
|
|
source $stdenv/setup
|
2006-07-28 14:49:12 +02:00
|
|
|
|
2006-07-28 15:17:09 +02:00
|
|
|
export MODULE_DIR=$out/lib/modules/
|
2006-07-28 14:49:12 +02:00
|
|
|
|
|
|
|
kernelVersion=$(cd $kernel/lib/modules/; ls -d *)
|
|
|
|
|
|
|
|
mkdir -p $out/lib/modules/$kernelVersion
|
|
|
|
|
|
|
|
cd $kernel
|
|
|
|
|
|
|
|
# making kernel directories
|
|
|
|
|
|
|
|
find . -not -path "./lib/modules/$kernelVersion/build*" -type d | xargs -n 1 -i% mkdir -p $out/%
|
|
|
|
|
|
|
|
# symlinking kernel modules
|
|
|
|
|
|
|
|
find . -not -path "./lib/modules/$kernelVersion/build*" -a -not -path \
|
|
|
|
"./System*" -a -not -path "./vmlinuz*" -type f | xargs -n 1 -i% \
|
2006-07-28 15:17:09 +02:00
|
|
|
ln -s $kernel/% $out/%
|
2006-07-28 14:49:12 +02:00
|
|
|
|
|
|
|
# echo making ov511 directories
|
|
|
|
|
|
|
|
# cd $ov511
|
2006-07-28 15:17:09 +02:00
|
|
|
# @findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $out/%
|
2006-07-28 14:49:12 +02:00
|
|
|
#
|
|
|
|
# echo symlinking ov511 modules
|
|
|
|
#
|
2006-07-28 15:17:09 +02:00
|
|
|
# @findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type f | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/ln -s $ov511/% $out/%
|
2006-07-28 14:49:12 +02:00
|
|
|
|
|
|
|
# running depmod
|
2006-07-28 15:17:09 +02:00
|
|
|
$module_init_tools/sbin/depmod -ae $kernelVersion
|