mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
linux: run make install in parallel
This improves build times significantly, from 20min to 9min on the aarch64 community box.
This commit is contained in:
parent
39037a3431
commit
a69064eebc
1 changed files with 4 additions and 0 deletions
|
@ -164,6 +164,10 @@ let
|
|||
] ++ (optional isModular "INSTALL_MOD_PATH=$(out)")
|
||||
++ optional installsFirmware "INSTALL_FW_PATH=$(out)/lib/firmware";
|
||||
|
||||
preInstall = ''
|
||||
installFlagsArray+=("-j$NIX_BUILD_CORES")
|
||||
'';
|
||||
|
||||
# Some image types need special install targets (e.g. uImage is installed with make uinstall)
|
||||
installTargets = [ (
|
||||
if platform ? kernelInstallTarget then platform.kernelInstallTarget
|
||||
|
|
Loading…
Reference in a new issue