linux/kernel/manual-config: Move the build directory to $out instead of symlinking it
This commit is contained in:
parent
a36456ca25
commit
e42a6c5f46
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,7 @@ stdenv.mkDerivation ({
|
|||
runHook preConfigure
|
||||
ln -sv ${config} .config
|
||||
make oldconfig
|
||||
rm .config.old
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
|
@ -89,5 +90,9 @@ stdenv.mkDerivation ({
|
|||
postInstall = ''
|
||||
make modules_install $makeFlags "''${makeFlagsArray[@]}" \
|
||||
$installFlags "''${installFlagsArray[@]}"
|
||||
rm -f $out/lib/modules/${modDirVersion}/{build,source}
|
||||
cd ..
|
||||
mv $sourceRoot $out/lib/modules/${modDirVersion}/build
|
||||
ln -sv $out/lib/modules/${modDirVersion}/{build,source}
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue