From patchwork Thu May 19 06:52:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 68099 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3033225qge; Wed, 18 May 2016 23:54:37 -0700 (PDT) X-Received: by 10.28.157.143 with SMTP id g137mr11761717wme.29.1463640877066; Wed, 18 May 2016 23:54:37 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id k10si15756825wjf.224.2016.05.18.23.54.36; Wed, 18 May 2016 23:54:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C854FA764B; Thu, 19 May 2016 08:53:36 +0200 (CEST) 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 6plSOloQ5IPb; Thu, 19 May 2016 08:53:36 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EDB49A765D; Thu, 19 May 2016 08:52:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F1A10A7643 for ; Thu, 19 May 2016 08:52:39 +0200 (CEST) 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 cWqNTHq2R4-K for ; Thu, 19 May 2016 08:52:39 +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 conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by theia.denx.de (Postfix) with ESMTPS id 8FC9AA75BA for ; Thu, 19 May 2016 08:51:55 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id u4J6p2a0001067; Thu, 19 May 2016 15:51:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u4J6p2a0001067 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1463640679; bh=I+0qRexGPjmchXVXnRvowGFzHOvBNqQL+2cTRnELCoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WLzb/U3wd8RV5XRKCtiYTnCEv9S/GDownlOkP9o30/tsU1HSmTUIGYJNGtUgIxHIw fR1PX48HQ8oHCc5iaOD6rjHjuQQrOIomh3hUnXHc81a2n3v/eM8IHIZzurb0oAnobu xJ2MPCtaVS8XeYz5kYAMPPe/KtJiMdYXsqDhqgu0GeCNNlAKFDajq1CSWdBnTln+20 xuTwUBBvox2IXIuO+EEP89peLDmsbCF9H4n8llbFpCsMWxtBqpwe32NfIiZR1vaHv8 UrOYUqIQ1acrgWQD1WDF0wBQKOd50RaCPjSt13jDFMyIrROotFr3ooId5r1DMIju52 y049iacydS5Hw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 19 May 2016 15:52:09 +0900 Message-Id: <1463640729-25666-22-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463640729-25666-1-git-send-email-yamada.masahiro@socionext.com> References: <1463640729-25666-1-git-send-email-yamada.masahiro@socionext.com> Cc: Joe Hershberger Subject: [U-Boot] [PATCH 21/21] tools: moveconfig: allow to run without any CONFIG specified X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" I found "tools/moveconfig -s" might be useful for defconfig re-sync. I could optimize it for re-sync if I wanted, but I do not want to make the code complex for this feature. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/tools/moveconfig.py b/tools/moveconfig.py index acc3dbb..a9f7c50 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -871,10 +871,13 @@ def move_config(configs, options): options: option flags """ if len(configs) == 0: - print 'Nothing to do. exit.' - sys.exit(0) - - print 'Move %s (jobs: %d)' % (', '.join(configs), options.jobs) + if options.force_sync: + print 'No CONFIG is specified. You are probably syncing defconfigs.', + else: + print 'Neigher CONFIG nor --force-sync is specified. Nothing will happen.', + else: + print 'Move ' + ', '.join(configs), + print '(jobs: %d)\n' % options.jobs if options.defconfigs: defconfigs = [line.strip() for line in open(options.defconfigs)] @@ -944,7 +947,7 @@ def main(): (options, configs) = parser.parse_args() - if len(configs) == 0: + if len(configs) == 0 and not options.force_sync: parser.print_usage() sys.exit(1)