summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-04-11 23:37:31 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-12 20:06:22 +0200
commit91653cd0c26a5dc3b33addc3d90f17300b0ed5d0 (patch)
tree557d6805c99bbd4505b079c6876feb507eca2464 /toolchain
parentef33aa27faa919cb13155e396f7f275cc51b1fe8 (diff)
enable parallel building for uclibc
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile
index 8d956f4b1..ee64a4940 100644
--- a/toolchain/uClibc/Makefile
+++ b/toolchain/uClibc/Makefile
@@ -8,6 +8,10 @@ include ../rules.mk
include Makefile.inc
include ${TOPDIR}/mk/buildhlp.mk
+ifeq (${ADK_MAKE_PARALLEL},y)
+UCLIBC_MAKEOPTS+= -j${ADK_MAKE_JOBS}
+endif
+
$(WRKBUILD)/.headers:
$(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(WRKBUILD)/Rules.mak
sed -e 's^KERNEL_HEADERS.*$$KERNEL_HEADERS=\"${TOOLCHAIN_SYSROOT}/usr/include\"' \
@@ -15,7 +19,7 @@ $(WRKBUILD)/.headers:
ifneq ($(ADK_DEBUG),)
$(SED) 's,DOSTRIP,DODEBUG,' ${WRKBUILD}/.config
endif
- $(MAKE) -C $(WRKBUILD) \
+ $(MAKE) ${UCLIBC_MAKEOPTS} -C $(WRKBUILD) \
PREFIX=$(TOOLCHAIN_SYSROOT) \
DEVEL_PREFIX=/usr/ \
RUNTIME_PREFIX=$(TOOLCHAIN_SYSROOT) \
@@ -26,7 +30,7 @@ endif
touch $@
$(WRKBUILD)/.compiled:
- $(MAKE) -C $(WRKBUILD) \
+ $(MAKE) ${UCLIBC_MAKEOPTS} -C $(WRKBUILD) \
PREFIX= \
DEVEL_PREFIX=/ \
RUNTIME_PREFIX=/ \