From patchwork Sun Jan 27 17:13:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 216023 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 793782C0082 for ; Mon, 28 Jan 2013 04:13:29 +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=1359911609; 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=C2nEGGIu0w5lUTJonG7Z2/fDNYI=; b=X3rpHkmminNMF+zngEcBzFI2JTadN7JABEFp4rkdUr8OoD9oxfHAPqJWwjSnhJ 0z4Z7G2WBTzFnllD2Jt388RcRdu0xv8crAs8kSUeEvS96OTiHyIdXwJ6ltMhkHCD qxu8E8ny+bALqicjQzo0/+m2hVEjx9ZJJwgWfDfOm8Xbw= 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=Hh7pOWBBoffQ76ESK8FR/Qcy6O/E+K2kxaWBh2kJRKS5xNlNSf0GyF/nw1+xNl rtp7vJekvgUJgsYuqLeuZfXjLbSQnD9nU6dHrGkbZoiGMfATnwv+K0Z5RXSvcLmr OAGVPGw6FEO8LWcr5XajGwa3eXntj5os5Laq0Ctj6SpVQ=; Received: (qmail 19156 invoked by alias); 27 Jan 2013 17:13:24 -0000 Received: (qmail 19148 invoked by uid 22791); 27 Jan 2013 17:13:23 -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-wi0-f175.google.com (HELO mail-wi0-f175.google.com) (209.85.212.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Jan 2013 17:13:19 +0000 Received: by mail-wi0-f175.google.com with SMTP id hq12so343025wib.8 for ; Sun, 27 Jan 2013 09:13:18 -0800 (PST) X-Received: by 10.194.48.74 with SMTP id j10mr17094412wjn.36.1359306798515; Sun, 27 Jan 2013 09:13:18 -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 hg17sm8200000wib.1.2013.01.27.09.13.17 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Jan 2013 09:13:17 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH v2] script: allow to pass any float value for CT_LOAD X-Mercurial-Node: a2a1486c08ed6f0ba1b447b9e932054e50b9ecf5 Message-Id: User-Agent: Mercurial-patchbomb/2.4.2 Date: Sun, 27 Jan 2013 18:13:00 +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 a2a1486c08ed6f0ba1b447b9e932054e50b9ecf5 # Parent 67df47c6ccd0c65a92c1d84813ad64f5d96dfd2b script: allow to pass any float value for CT_LOAD --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 67df47c6ccd0 -r a2a1486c08ed 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 a2a1486c08ed 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.