linux/kernel/manual-config: Move the build directory to $out instead of symlinking it
This commit is contained in:
parent
a36456ca25
commit
e42a6c5f46
@ -65,6 +65,7 @@ stdenv.mkDerivation ({
|
|||||||
runHook preConfigure
|
runHook preConfigure
|
||||||
ln -sv ${config} .config
|
ln -sv ${config} .config
|
||||||
make oldconfig
|
make oldconfig
|
||||||
|
rm .config.old
|
||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -89,5 +90,9 @@ stdenv.mkDerivation ({
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
make modules_install $makeFlags "''${makeFlagsArray[@]}" \
|
make modules_install $makeFlags "''${makeFlagsArray[@]}" \
|
||||||
$installFlags "''${installFlagsArray[@]}"
|
$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…
x
Reference in New Issue
Block a user