mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
13d2ab0322
svn path=/nixpkgs/trunk/; revision=4572
27 lines
481 B
Bash
27 lines
481 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/misc
|
|
|
|
LINUX_DIR=$kernel/lib/modules/$version/build
|
|
PREFIX=$out
|
|
MODULE_DIR=$out/lib/modules/$version
|
|
|
|
export LINUX_DIR
|
|
export PREFIX
|
|
export MODULE_DIR
|
|
|
|
genericBuild
|