kernel derivation: add output for module support

This commit is contained in:
Daniel Barlow 2023-02-22 18:33:17 +00:00
parent e89fcfbf09
commit 891db9edc5

View file

@ -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
''; '';
} }