aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/bitbake.conf3
-rw-r--r--conf/local.conf.sample6
2 files changed, 9 insertions, 0 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index a8c73120fd..5fa8bb0d38 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -239,6 +239,9 @@ export TARGET_LDFLAGS = "-L${STAGING_DIR}/${TARGET_SYS}/lib \
# Which flags to leave by strip-flags() in bin/build/oebuild.sh ?
ALLOWED_FLAGS = "-O -mcpu -march -pipe"
+# Pass parallel make options to the compile task only
+EXTRA_OEMAKE_prepend_task_do_compile = "${PARALLEL_MAKE} "
+
##################################################################
# Optimization flags.
##################################################################
diff --git a/conf/local.conf.sample b/conf/local.conf.sample
index cb2b367db5..35ec6e8d50 100644
--- a/conf/local.conf.sample
+++ b/conf/local.conf.sample
@@ -97,6 +97,12 @@ IMAGE_FSTYPES = "jffs2 tar"
# SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"
# LDFLAGS =+ "-pg"
+# Uncomment this to enable parallel make.
+# This allows make to spawn mutliple processes to take advantage of multiple
+# processors. Useful on SMP machines. This may break some packages - we're
+# in the process of marking these so let us know if you find any.
+# PARALLEL_MAKE = "-j 4"
+
# Uncomment this if you want BitBake to emit the log if a build fails.
BBINCLUDELOGS = "yes"