From d2be962993ec649c07717cd03ddf5d00698a0c2f Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Wed, 22 May 2013 21:36:02 -0700 Subject: [PATCH 1/4] Build U-Boot in parallel. --- lib/uboot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/uboot.sh b/lib/uboot.sh index 564eabb..b5e6a53 100644 --- a/lib/uboot.sh +++ b/lib/uboot.sh @@ -2,6 +2,8 @@ . ${LIBDIR}/freebsd_xdev.sh +UBOOTJOBS=1 + # $1: Variable that holds root of U-Boot tree # $2...: list of commands to fetch appropriate U-Boot sources _uboot_download_instructions ( ) ( @@ -141,7 +143,7 @@ uboot_build ( ) ( cd "$1" echo "Building U-Boot at "`date` echo " (Logging to $1/_.uboot.build.log)" - if gmake SED=gsed HOSTCC=cc CROSS_COMPILE=${FREEBSD_XDEV_PREFIX} > $1/_.uboot.build.log 2>&1; then + if gmake -j ${UBOOTJOBS} SED=gsed HOSTCC=cc CROSS_COMPILE=${FREEBSD_XDEV_PREFIX} > $1/_.uboot.build.log 2>&1; then # success else echo " Failed to build U-Boot." -- 1.8.5.2