f6e4235c6b
the module and install it under $out/lib/modules/$kernelversion/ ... Eventually we will make tons of symlinks from /lib/modules/$kernelversion to this location, so we can safely run tools like depmod and friends. I believe this is the least ugly hack to make it work. svn path=/nixpkgs/trunk/; revision=4486
18 lines
357 B
Bash
18 lines
357 B
Bash
source $stdenv/setup
|
|
|
|
hashname=$(basename $kernel)
|
|
echo $hashname
|
|
if echo "$hashname" | grep -q '^[a-z0-9]\{32\}-'; then
|
|
hashname=$(echo "$hashname" | cut -c -32)
|
|
fi
|
|
|
|
stripHash $kernel
|
|
version=$(echo $strippedName | cut -c 7-)-$hashname
|
|
|
|
echo "version $version"
|
|
|
|
export version
|
|
|
|
ensureDir $out/lib/modules/$version/kernel/drivers/usb/media/
|
|
|
|
genericBuild
|