[LinuxBIOS] r74 - in buildrom-devel: . packages/kernel packages/uclibc
svn at openbios.org
svn at openbios.org
Wed Dec 5 19:35:36 CET 2007
Author: jcrouse
Date: 2007-12-05 19:35:36 +0100 (Wed, 05 Dec 2007)
New Revision: 74
Modified:
buildrom-devel/Config.in
buildrom-devel/packages/kernel/kernel.inc
buildrom-devel/packages/uclibc/uclibc.mk
Log:
This patch adds -jN support to speed builds. It passes it as an
argument to make for the kernel and uClibc. It breaks the build for
busybox, so it isn't passed there.
The default is -j1, or the status quo.
Signed-off-by: Myles Watson <myles at pel.cs.byu.edu>
Acked-by: Corey Osgood <corey.osgood at gmail.com>
Modified: buildrom-devel/Config.in
===================================================================
--- buildrom-devel/Config.in 2007-12-04 19:17:07 UTC (rev 73)
+++ buildrom-devel/Config.in 2007-12-05 18:35:36 UTC (rev 74)
@@ -13,6 +13,18 @@
See the entire build output on stdout. Otherwise, it will
be saved off in a series of logs
+config MAKE_JOBS
+ string "Send this option to make to parallelize builds"
+ default "-j1"
+ help
+ This can speed the build if you have more than one core that you
+ would like to allow make to use. If you have a single processor, use
+ the default (-j1) otherwise, try processors+1 (-j5 for 4 processors).
+
+ This option currently only speeds up the kernel and uClibc builds.
+ It was tried for: linuxbios (not passed through to fallback,etc.)
+ busybox (causes errors)
+
config ADVANCED
bool "Enable advanced operations"
default n
Modified: buildrom-devel/packages/kernel/kernel.inc
===================================================================
--- buildrom-devel/packages/kernel/kernel.inc 2007-12-04 19:17:07 UTC (rev 73)
+++ buildrom-devel/packages/kernel/kernel.inc 2007-12-05 18:35:36 UTC (rev 74)
@@ -52,7 +52,7 @@
$(KERNEL_BZIMAGE): $(KERNEL_SRC_DIR)/.config
@ echo "Building kernel..."
- @ $(MAKE) -C $(KERNEL_SRC_DIR) ARCH=$(KERNEL_BUILD_ARCH) \
+ @ $(MAKE) $(CONFIG_MAKE_JOBS) -C $(KERNEL_SRC_DIR) ARCH=$(KERNEL_BUILD_ARCH) \
KERNEL_CC="$(CC)" KERNEL_LD="$(LD)" > $(KERNEL_BUILD_LOG) 2>&1
$(OUTPUT_DIR)/bzImage: $(KERNEL_BZIMAGE)
Modified: buildrom-devel/packages/uclibc/uclibc.mk
===================================================================
--- buildrom-devel/packages/uclibc/uclibc.mk 2007-12-04 19:17:07 UTC (rev 73)
+++ buildrom-devel/packages/uclibc/uclibc.mk 2007-12-05 18:35:36 UTC (rev 74)
@@ -39,7 +39,7 @@
$(UCLIBC_SRC_DIR)/lib/libc.a: $(UCLIBC_SRC_DIR)/.config
@ echo "Building uclibc..."
@ ( unset CFLAGS; unset LDFLAGS; \
- $(MAKE) -C $(UCLIBC_SRC_DIR) TARGET_ARCH="$(UCLIBC_ARCH)" \
+ $(MAKE) $(CONFIG_MAKE_JOBS) -C $(UCLIBC_SRC_DIR) TARGET_ARCH="$(UCLIBC_ARCH)" \
CC="$(CC) $(CROSS_CFLAGS)" LD="$(LD) $(CROSS_LDFLAGS)" \
HOSTCC="$(HOST_CC)" KERNEL_SOURCE="$(KERNEL_SRC_DIR)" \
RUNTIME_PREFIX="/" \
More information about the coreboot
mailing list