From patchwork Thu Aug 7 20:52:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: York Sun X-Patchwork-Id: 377953 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 AF4D6140082 for ; Fri, 8 Aug 2014 06:52:57 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E9207A7526; Thu, 7 Aug 2014 22:52:54 +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 uZxOPpr8RinN; Thu, 7 Aug 2014 22:52:54 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 770C4A7534; Thu, 7 Aug 2014 22:52:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9CD8BA7523 for ; Thu, 7 Aug 2014 22:52:48 +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 sOAi7Ja6cJlm for ; Thu, 7 Aug 2014 22:52:45 +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 na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0185.outbound.protection.outlook.com [207.46.163.185]) by theia.denx.de (Postfix) with ESMTPS id 35060A7526 for ; Thu, 7 Aug 2014 22:52:40 +0200 (CEST) Received: from BL2PR03MB148.namprd03.prod.outlook.com (10.255.230.27) by BL2PR03MB387.namprd03.prod.outlook.com (10.141.91.152) with Microsoft SMTP Server (TLS) id 15.0.995.14; Thu, 7 Aug 2014 20:52:38 +0000 Received: from [10.214.82.115] (192.88.168.50) by BL2PR03MB148.namprd03.prod.outlook.com (10.255.230.27) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Thu, 7 Aug 2014 20:52:35 +0000 Message-ID: <53E3E70E.5030407@freescale.com> Date: Thu, 7 Aug 2014 13:52:30 -0700 From: York Sun User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Masahiro Yamada References: <20140801225339.D541.AA925319@jp.panasonic.com> <53DFD7F0.8050601@freescale.com> <20140805102217.D57A.AA925319@jp.panasonic.com> In-Reply-To: <20140805102217.D57A.AA925319@jp.panasonic.com> X-Originating-IP: [192.88.168.50] X-ClientProxiedBy: DM2PR04CA026.namprd04.prod.outlook.com (10.141.154.144) To BL2PR03MB148.namprd03.prod.outlook.com (10.255.230.27) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 029651C7A1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(6049001)(199002)(189002)(479174003)(51704005)(24454002)(377454003)(85852003)(77982001)(79102001)(42186005)(15975445006)(83072002)(47776003)(54356999)(87976001)(36756003)(99396002)(15202345003)(83506001)(87266999)(110136001)(50986999)(65816999)(77096002)(76176999)(81542001)(23756003)(81342001)(101416001)(31966008)(4396001)(86362001)(46102001)(64706001)(50466002)(102836001)(107046002)(106356001)(83322001)(80022001)(33656002)(65956001)(65806001)(74662001)(21056001)(95666004)(19580405001)(20776003)(76482001)(66066001)(85306004)(74502001)(80316001)(92566001)(92726001)(105586002)(19580395003); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB148; H:[10.214.82.115]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-OriginatorOrg: freescale.com Cc: Tom Rini , U-Boot Mailing List Subject: Re: [U-Boot] Removing the need for boards.cfg 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 On 08/04/2014 06:22 PM, Masahiro Yamada wrote: > Hi York, > > > > On Mon, 4 Aug 2014 11:58:56 -0700 > York Sun wrote: > >> On 08/01/2014 06:53 AM, Masahiro Yamada wrote: >>> >>> If MAKEALL/buildman is invoked without any arguments >>> (which means build all the board), >>> boards.cfg is not necessary in the first place. >>> >>> It that case, can we skip generating boards.cfg ? >>> (We can get the board list by 'ls configs' ) >>> >>> >>> We need a database only when we want to select boards by CPU, Vendor, SoC. >>> >> >> Dear Masahiro, >> >> What is the best way to replace "./MAKEALL -a powerpc" or "./MAKEALL -a arm"? >> You must have verified compiling for all targets. I am wondering if you can >> share your setup. I still heavily rely on MAKEALL to build all targets I care. >> >> York > > > I think "./MAKEALL -a powerpc" or "./MAKEALL -a arm" > is still working as it was. Dear Masahiro, Generating boards.cfg gives me another trouble. I use Jenkins (http://jenkins-ci.org/) for internal development. Even I can manually run MAKEALL to generate boards.cfg, the same script under Jenkins cannot. I have this error ./MAKEALL -c mpc83xx -c mpc85xx -c mpc86xx Could not find boards.cfg Generating boards.cfg ... (jobs: 8) Traceback (most recent call last): File "tools/genboardscfg.py", line 504, in main() File "tools/genboardscfg.py", line 501, in main gen_boards_cfg(jobs) File "tools/genboardscfg.py", line 471, in gen_boards_cfg __gen_boards_cfg(jobs) File "tools/genboardscfg.py", line 437, in __gen_boards_cfg indicator = Indicator(len(defconfigs)) File "tools/genboardscfg.py", line 384, in __init__ width = get_terminal_columns() File "tools/genboardscfg.py", line 59, in get_terminal_columns ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg) IOError: [Errno 22] Invalid argument Failed to generate boards.cfg Looks like the script is trying to get the terminal window size. There is no terminal for my case. Checking variable TERM, it is "dumb". I can make it work by removing the two lines but I don't think that's the solution. York --- a/tools/genboardscfg.py +++ b/tools/genboardscfg.py @@ -58,8 +58,6 @@ def get_terminal_columns(): try: ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg) except IOError as exception: - if exception.errno != errno.ENOTTY: - raise I am not an expert on python. Can you take a deep look? The host has ubuntu 12.04.3 with python 2.7.3.