forked from DGNum/liminix
kernel derivation: add output for module support
This commit is contained in:
parent
e89fcfbf09
commit
891db9edc5
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
outputs = ["out" "headers"];
|
outputs = ["out" "headers" "modulesupport"];
|
||||||
phases = [
|
phases = [
|
||||||
"unpackPhase"
|
"unpackPhase"
|
||||||
"butcherPkgconfig"
|
"butcherPkgconfig"
|
||||||
|
@ -89,6 +89,8 @@ stdenv.mkDerivation rec {
|
||||||
cp vmlinux $out
|
cp vmlinux $out
|
||||||
mkdir -p $headers
|
mkdir -p $headers
|
||||||
cp -a include .config $headers/
|
cp -a include .config $headers/
|
||||||
|
make clean modules_prepare
|
||||||
|
cp -a . $modulesupport
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue