commit: 236ce6b9cbc7870e8d7baf094d68720bb5cc5678 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> AuthorDate: Wed Mar 4 15:36:52 2020 +0000 Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> CommitDate: Wed Mar 4 15:38:24 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=236ce6b9
update MAKEOPTS default fallback we normally take 'portageq envvar MAKEOPTS' as the default MAKEOPTS, and if that isn't available we set a static -j2. Let's use all the cpus by default instead, and let the user override if they wish. Signed-off-by: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo.org> defaults/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/config.sh b/defaults/config.sh index 8c7cf7e..bab7b7e 100644 --- a/defaults/config.sh +++ b/defaults/config.sh @@ -33,7 +33,7 @@ DEFAULT_COMPRESS_INITRD=yes DEFAULT_COMPRESS_INITRD_TYPE=best PORTAGE_MAKEOPTS="$(portageq envvar MAKEOPTS)" -DEFAULT_MAKEOPTS="${PORTAGE_MAKEOPTS:- -j2}" +DEFAULT_MAKEOPTS="${PORTAGE_MAKEOPTS:- -j$(nproc)}" DEFAULT_MODULEREBUILD_CMD="emerge --ignore-default-opts --buildpkg=n --usepkg=n --quiet-build=y @module-rebuild"