From patchwork Fri Sep 28 00:57:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Phillips X-Patchwork-Id: 187662 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 8925C2C00A9 for ; Fri, 28 Sep 2012 11:00:05 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C42E4280DE; Fri, 28 Sep 2012 03:00:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EBKorYKjuryW; Fri, 28 Sep 2012 03:00:02 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B94E3280DF; Fri, 28 Sep 2012 02:59:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BDB0D280DF for ; Fri, 28 Sep 2012 02:59:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TXn1NrK4DGFE for ; Fri, 28 Sep 2012 02:59:57 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe002.messaging.microsoft.com [216.32.180.12]) by theia.denx.de (Postfix) with ESMTPS id AD4A6280DE for ; Fri, 28 Sep 2012 02:59:55 +0200 (CEST) Received: from mail160-va3-R.bigfish.com (10.7.14.244) by VA3EHSOBE004.bigfish.com (10.7.40.24) with Microsoft SMTP Server id 14.1.225.23; Fri, 28 Sep 2012 00:59:53 +0000 Received: from mail160-va3 (localhost [127.0.0.1]) by mail160-va3-R.bigfish.com (Postfix) with ESMTP id B9F67A00BF; Fri, 28 Sep 2012 00:59:53 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 1 X-BigFish: VS1(zzd6f1izz1202h1d1ah1d2ahzz8275bhz2dh2a8h668h839h944hd24he5bhf0ah107ah1220h1288h12a5h12a9h12bdh137ah139eh13b6h1155h) Received: from mail160-va3 (localhost.localdomain [127.0.0.1]) by mail160-va3 (MessageSwitch) id 1348793992999788_18383; Fri, 28 Sep 2012 00:59:52 +0000 (UTC) Received: from VA3EHSMHS005.bigfish.com (unknown [10.7.14.242]) by mail160-va3.bigfish.com (Postfix) with ESMTP id F1672260045; Fri, 28 Sep 2012 00:59:52 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS005.bigfish.com (10.7.99.15) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 28 Sep 2012 00:59:50 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.2.309.3; Thu, 27 Sep 2012 19:59:50 -0500 Received: from x9.am.freescale.net (x9.am.freescale.net [10.82.120.9]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with SMTP id q8S0xl41001935; Thu, 27 Sep 2012 17:59:47 -0700 Date: Thu, 27 Sep 2012 19:57:34 -0500 From: Kim Phillips To: Tom Rini Message-ID: <20120927195734.3edbada82221b3734c463359@freescale.com> In-Reply-To: <20120927234827.GA17747@bill-the-cat> References: <20120921172817.ba61bb4052aaad2abdc8e29d@freescale.com> <20120927234827.GA17747@bill-the-cat> Organization: Freescale Semiconductor, Inc. X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: u-boot@lists.denx.de, Kumar Gala Subject: [U-Boot] [PATCH] MAKEALL: add a -C/--check option to enable build checking X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de thanks to Tom Rini for the good idea. Signed-off-by: Kim Phillips --- MAKEALL | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MAKEALL b/MAKEALL index 806f21f..fa7d010 100755 --- a/MAKEALL +++ b/MAKEALL @@ -19,6 +19,7 @@ usage() -l, --list List all targets to be built -m, --maintainers List all targets and maintainer email -M, --mails List all targets and all affilated emails + -C, --check Enable build checking -h, --help This help output Selections by these options are logically ANDed; if the same option @@ -51,8 +52,8 @@ usage() exit ${ret} } -SHORT_OPTS="ha:c:v:s:lmM" -LONG_OPTS="help,arch:,cpu:,vendor:,soc:,list,maintainers,mails" +SHORT_OPTS="ha:c:v:s:lmMC" +LONG_OPTS="help,arch:,cpu:,vendor:,soc:,list,maintainers,mails,check" # Option processing based on util-linux-2.13/getopt-parse.bash @@ -111,6 +112,9 @@ while true ; do fi SELECTED='y' shift 2 ;; + -C|--check) + CHECK='C=1' + shift ;; -l|--list) ONLY_LIST='y' shift ;; @@ -628,7 +632,7 @@ build_target() { ${MAKE} distclean >/dev/null ${MAKE} -s ${target}_config - ${MAKE} ${JOBS} all \ + ${MAKE} ${JOBS} ${CHECK} all \ >${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR # Check for 'make' errors