aboutsummaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2015-04-28 13:34:10 -0400
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2015-04-28 13:34:10 -0400
commit547b48d1800dd18a693de428cb80ce5861057555 (patch)
tree65103a9057defe328bbef72c12ee8f5f1615f787 /arch/mips
parentupdate old cryptsetup-luks references (diff)
downloadgenkernel-547b48d1800dd18a693de428cb80ce5861057555.tar.gz
genkernel-547b48d1800dd18a693de428cb80ce5861057555.tar.bz2
genkernel-547b48d1800dd18a693de428cb80ce5861057555.zip
set DEFAULT_MAKEOPTS to what portage uses
Ask portage what MAKEOPTS should be and use this when unset on commandline or genkernel.conf. If portage MAKEOPTS are also unset, keep original defaults.
Diffstat (limited to 'arch/mips')
-rwxr-xr-xarch/mips/config.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/config.sh b/arch/mips/config.sh
index 49b4050..62531fc 100755
--- a/arch/mips/config.sh
+++ b/arch/mips/config.sh
@@ -23,6 +23,8 @@ CMD_INSTALL=0
#
DEFAULT_COMPRESS_INITRD=yes
DEFAULT_COMPRESS_INITRD_TYPE=best
+PORTAGE_MAKEOPTS="$(portageq envvar MAKEOPTS)"
+DEFAULT_MAKEOPTS="${PORTAGE_MAKEOPTS:- -j2}"
DEFAULT_KERNEL_MAKE=make
DEFAULT_UTILS_MAKE=make
DEFAULT_UTILS_CC=gcc