blob: a43138fa84feaef2aa75cf40b60efe4330be72de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
|