summaryrefslogtreecommitdiff
path: root/toolchain/binutils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/binutils/Makefile')
-rw-r--r--toolchain/binutils/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index fb6beccab..c3dc45b07 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -10,6 +10,10 @@ ifeq ($(ADK_LINUX_64),y)
CONFOPTS+= --enable-64-bit-bfd
endif
+ifeq (${ADK_MAKE_PARALLEL},y)
+BINUTILS_MAKEOPTS+= -j${ADK_MAKE_JOBS}
+endif
+
$(WRKBUILD)/.headers:
$(WRKBUILD)/.configured:
(cd $(WRKBUILD); \
@@ -31,7 +35,7 @@ $(WRKBUILD)/.configured:
touch $@
$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
- $(MAKE) -C $(WRKBUILD) all
+ $(MAKE) ${BINUTILS_MAKEOPTS} -C $(WRKBUILD) all
touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled