From patchwork Sun Jan 27 20:53:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 216062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id D9C972C0093 for ; Mon, 28 Jan 2013 07:53:56 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1359924837; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Content-Type:MIME-Version:Content-Transfer-Encoding:Subject: Message-Id:User-Agent:Date:From:To:Cc:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=AIDTsObQdmlZH7BRYtNJo6TFxTc=; b=IDqwEhn8V7yXlYpAOUVZK3uC+Z+1eJzKDJMPw6yQS8baZGdYx1j6QNaMSLSfFa uUBtfqC/NuiPBKtlstVlaPa2HgY3MPiVeMBlf7LZNAO+xORIzkvHZFz8e2GgYujR 0wsPkJbDhBvqnvqhD37eK4tbwBNm5Z7G7h5K+xBRZdSJ0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Received:Received:Content-Type:MIME-Version:Content-Transfer-Encoding:Subject:X-Mercurial-Node:Message-Id:User-Agent:Date:From:To:Cc:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=W4inGidUvfbaAAZrax7ICoIK7a9FK6PWkf4i0rGwvWvxeAnxcIYwSmfQ5C5WZw cMU7YDhZm8DOgyd85djCNPnlsEt5jprwfy9ZoQCTfBxVjgTbPNtgjp9OfZbkHMRX asQnl2ZKMcGUKVL/wTQuXNlZLsIQ9a94NuuIen/fKkkyc=; Received: (qmail 4901 invoked by alias); 27 Jan 2013 20:53:53 -0000 Received: (qmail 4893 invoked by uid 22791); 27 Jan 2013 20:53:53 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KHOP_RCVD_TRUST, KHOP_SPAMHAUS_DROP, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f48.google.com (HELO mail-wg0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Jan 2013 20:53:47 +0000 Received: by mail-wg0-f48.google.com with SMTP id 16so1287167wgi.15 for ; Sun, 27 Jan 2013 12:53:46 -0800 (PST) X-Received: by 10.194.108.229 with SMTP id hn5mr17823044wjb.8.1359320026481; Sun, 27 Jan 2013 12:53:46 -0800 (PST) Received: from [192.168.1.4] (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id ge2sm3143027wib.4.2013.01.27.12.53.45 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Jan 2013 12:53:45 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH v3] script: allow to pass any float value for CT_LOAD X-Mercurial-Node: b51acf21c72b4a8e882ebab127c0bdcbd733ead6 Message-Id: User-Agent: Mercurial-patchbomb/2.4.2 Date: Sun, 27 Jan 2013 21:53:35 +0100 From: Samuel Martin To: "Yann E. MORIN" Cc: crossgcc@sourceware.org X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org # HG changeset patch # User Samuel Martin # Date 1359305659 -3600 # Node ID b51acf21c72b4a8e882ebab127c0bdcbd733ead6 # Parent 67df47c6ccd0c65a92c1d84813ad64f5d96dfd2b script: allow to pass any float value for CT_LOAD Signed-off-by: Samuel Martin --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 67df47c6ccd0 -r b51acf21c72b config/global/build-behave.in --- a/config/global/build-behave.in Mon Jan 21 23:03:18 2013 +0100 +++ b/config/global/build-behave.in Sun Jan 27 17:54:19 2013 +0100 @@ -19,19 +19,17 @@ Enter 0 to set automatically based on how many processors the host has. config LOAD - int + string prompt "Maximum allowed load" if ! BACKEND - default 0 + default "" help Specifies that no new jobs should be started if there are others jobs running and the load average is at least this value. - - Makes sense on SMP machines only. - - Enter 0 to have no limit on the load average. - - Note: only the integer part of the load is allowed here (you can't enter - 0.75 for example). + + Leave to empty for no load limit. + + Note: any float value is allowed and will be passed to the '-l' option + of make (for further details, refer to the make manpage). config USE_PIPES bool diff -r 67df47c6ccd0 -r b51acf21c72b scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Mon Jan 21 23:03:18 2013 +0100 +++ b/scripts/crosstool-NG.sh.in Sun Jan 27 17:54:19 2013 +0100 @@ -516,7 +516,7 @@ AUTO_JOBS=$((`getconf _NPROCESSORS_ONLN 2> /dev/null || echo 0` + 1)) [ ${CT_PARALLEL_JOBS} -eq 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${AUTO_JOBS}" [ ${CT_PARALLEL_JOBS} -gt 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${CT_PARALLEL_JOBS}" - [ ${CT_LOAD} -ne 0 ] && JOBSFLAGS="${JOBSFLAGS} -l${CT_LOAD}" + JOBSFLAGS="${JOBSFLAGS} -l${CT_LOAD}" # Now that we've set up $PATH and $CT_CFLAGS_FOR_HOST, sanity test that gcc # is runnable so that the user can troubleshoot problems if not.