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
@ -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 New Issue
Block a user