From patchwork Thu Nov 20 20:18:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: York Sun X-Patchwork-Id: 412863 X-Patchwork-Delegate: sjg@chromium.org 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 6B83A14014D for ; Fri, 21 Nov 2014 07:18:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 01CEC4B7E7; Thu, 20 Nov 2014 21:18:30 +0100 (CET) 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 bD+iQvQyZ3se; Thu, 20 Nov 2014 21:18:29 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4C37E4B7D8; Thu, 20 Nov 2014 21:18:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BB5A04B7D8 for ; Thu, 20 Nov 2014 21:18:24 +0100 (CET) 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 v4L5S4n1GZvu for ; Thu, 20 Nov 2014 21:18:24 +0100 (CET) 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 na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0134.outbound.protection.outlook.com [157.56.110.134]) by theia.denx.de (Postfix) with ESMTPS id 3FE3A4B7D6 for ; Thu, 20 Nov 2014 21:18:20 +0100 (CET) Received: from BY2PR03CA007.namprd03.prod.outlook.com (10.255.93.24) by BN1PR0301MB0628.namprd03.prod.outlook.com (25.160.171.13) with Microsoft SMTP Server (TLS) id 15.1.16.15; Thu, 20 Nov 2014 20:18:18 +0000 Received: from BL2FFO11FD036.protection.gbl (10.255.93.4) by BY2PR03CA007.outlook.office365.com (10.255.93.24) with Microsoft SMTP Server (TLS) id 15.1.26.15 via Frontend Transport; Thu, 20 Nov 2014 20:18:17 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD036.mail.protection.outlook.com (10.173.161.132) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Thu, 20 Nov 2014 20:18:17 +0000 Received: from [10.214.87.117] ([10.214.87.117]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id sAKKIARV007063; Thu, 20 Nov 2014 13:18:16 -0700 Message-ID: <546E4C82.2010305@freescale.com> Date: Thu, 20 Nov 2014 12:18:10 -0800 From: York Sun User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Simon Glass References: <546E3731.6080006@freescale.com> <546E3F77.9010503@freescale.com> <546E4504.5040906@freescale.com> <546E4744.3090108@freescale.com> In-Reply-To: X-EOPAttributedMessage: 0 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=yorksun@freescale.com; X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(479174003)(51704005)(377454003)(199003)(24454002)(189002)(120916001)(99396003)(36756003)(65816999)(76176999)(87266999)(54356999)(50986999)(19580395003)(6806004)(44976005)(80316001)(85426001)(65806001)(65956001)(33656002)(84676001)(31966008)(83506001)(77156002)(62966003)(64706001)(93886004)(20776003)(87936001)(68736004)(59896002)(102836001)(92566001)(92726001)(86362001)(23676002)(97736003)(46102003)(21056001)(50466002)(105606002)(47776003)(106466001)(107046002)(110136001)(104016003)(4396001)(95666004); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR0301MB0628; H:tx30smr01.am.freescale.net; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0628; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:BN1PR0301MB0628; X-Forefront-PRVS: 0401647B7F X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:BN1PR0301MB0628; X-OriginatorOrg: freescale.com Cc: "u-boot@lists.denx.de" Subject: Re: [U-Boot] help on using buildman X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 On 11/20/2014 12:10 PM, Simon Glass wrote: > Hi York, >> >> I think the key is to configure it, not build it. With the failure case, it >> doesn't build. I am thinking to find the equivalent to "make ARCH=power ...". >> How to dump that? > > Add a 'print' line to make() in builder.py: > > cmd = [self.gnu_make] + list(args) > print cmd > result = command.RunPipe([cmd], capture=True, capture_stderr=True, > cwd=cwd, raise_on_error=False, **kwargs) > return result > Thanks. Adding the "print cmd" makes the issue disappeared. Removing it, the issue comes back. Add it back, it is gone again. I removed the working directory each time before building it. See the commands below $ !407 ./tools/buildman/buildman -b working_upstream_qoriq --count=1 --keep-outputs --force-build --force-reconfig MPC832XEMDS_HOST_66 -ve No section: 'make-flags' boards.cfg is up to date. Nothing to do. Building 1 commit for 1 boards (1 thread, 24 jobs per thread) Cloning repo for thread 0 0 0 0 /1 (starting) ['make', 'mrproper', 'O=build', '-j', '24'] ['make', 'O=build', '-j', '24', 'MPC832XEMDS_HOST_66_defconfig'] ['make', 'O=build', '-j', '24'] 01: arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing 1 0 0 /1 MPC832XEMDS_HOST_66 -bash-3.2$ git diff -bash-3.2$ git checkout tools/buildman/builder.py -bash-3.2$ rm -rf ../working_upstream_qoriq/ -bash-3.2$ ./tools/buildman/buildman -b working_upstream_qoriq --count=1 --keep-outputs --force-build --force-reconfig MPC832XEMDS_HOST_66 -ve No section: 'make-flags' boards.cfg is up to date. Nothing to do. Building 1 commit for 1 boards (1 thread, 24 jobs per thread) Cloning repo for thread 0 01: arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing powerpc: + MPC832XEMDS_HOST_66 +make[1]: *** No rule to make target `../arch//cpu/u-boot.lds', needed by `u-boot.lds'. Stop. +make: *** [sub-make] Error 2 0 0 1 /1 MPC832XEMDS_HOST_66 -bash-3.2$ vi tools/buildman/builder.py -bash-3.2$ rm -rf ../working_upstream_qoriq/-bash-3.2$ ./tools/buildman/buildman -b working_upstream_qoriq --count=1 --keep-outputs --force-build --force-reconfig MPC832XEMDS_HOST_66 -ve No section: 'make-flags' boards.cfg is up to date. Nothing to do. Building 1 commit for 1 boards (1 thread, 24 jobs per thread) Cloning repo for thread 0 0 0 0 /1 (starting) ['make', 'mrproper', 'O=build', '-j', '24'] ['make', 'O=build', '-j', '24', 'MPC832XEMDS_HOST_66_defconfig'] ['make', 'O=build', '-j', '24'] 01: arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing 1 0 0 /1 MPC832XEMDS_HOST_66 -bash-3.2$ I don't see ARCH defined anywhere. York diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index 8155c16..0411959 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -324,6 +324,7 @@ class Builder: kwargs: Arguments to pass to command.RunPipe() """ cmd = [self.gnu_make] + list(args) + print cmd result = command.RunPipe([cmd], capture=True, capture_stderr=True, cwd=cwd, raise_on_error=False, **kwargs) return result diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index a9cf68a..d9526e6 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -197,7 +197,7 @@ class BuilderThread(threading.Thread): src_dir = os.getcwd() else: args.append('O=build') - args.append('-s') +# args.append('-s') if self.builder.num_jobs is not None: args.extend(['-j', str(self.builder.num_jobs)]) config_args = ['%s_defconfig' % brd.target]