linux/kernel/manual-config: Move the build directory to $out instead of symlinking it

This commit is contained in:
Shea Levy 2012-07-29 03:27:09 -04:00
parent a36456ca25
commit e42a6c5f46

View file

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