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:
Linus Heckemann 2019-12-15 16:04:53 +01:00 committed by Frederik Rietdijk
parent 39037a3431
commit a69064eebc

View File

@ -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