From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1424F21CB57A2 for ; Thu, 29 Jun 2017 20:15:44 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP; 29 Jun 2017 20:17:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,284,1496127600"; d="scan'208";a="120650063" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 29 Jun 2017 20:17:17 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Jun 2017 20:17:16 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Jun 2017 20:17:16 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.122]) with mapi id 14.03.0319.002; Fri, 30 Jun 2017 11:17:15 +0800 From: "Zhu, Yonghong" To: "edk2-devel@lists.01.org" CC: "Ruffin, Chris" , "Gao, Liming" , "Zhu, Yonghong" Thread-Topic: [edk2] [PATCH] BaseTools: suppress usage instructions with rebuild options Thread-Index: AQHS8KbZ1VnFRMMa9EGsY9X5/zXsLKI8vVWA Date: Fri, 30 Jun 2017 03:17:14 +0000 Message-ID: References: <1498720209-19580-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1498720209-19580-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] BaseTools: suppress usage instructions with rebuild options X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 03:15:44 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Yonghong Zhu =20 Best Regards, Zhu Yonghong -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Yong= hong Zhu Sent: Thursday, June 29, 2017 3:10 PM To: edk2-devel@lists.01.org Cc: Ruffin, Chris ; Gao, Liming Subject: [edk2] [PATCH] BaseTools: suppress usage instructions with rebuild= options From: Chris Ruffin When using edksetup.bat Rebuild, the script outputs usage instructions to t= he console, when no usage error is encountered. Update the usage instructi= ons and suppress these usage instructions when using the Rebuild, ForceRebu= ild options. Change-Id: Ica98e19f3d5198df2519106e4c55314c255e04ac Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin --- edksetup.bat | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/edksetup.bat b/edksetup.bat index 7aa1675..97e2330 100755 --- a/edksetup.bat +++ b/edksetup.bat @@ -14,10 +14,10 @@ =20 @REM set CYGWIN_HOME=3DC:\cygwin =20 -@REM usage:=20 +@REM usage: @REM edksetup.bat [--nt32] [AntBuild] [Rebuild] [ForceRebuild] [Reconfig= ] @REM if the argument, skip is present, only the paths and the -@REM test a= nd set of environment settings are performed.=20 +@REM test and set of environment settings are performed. =20 @REM ############################################################## @REM # You should not have to modify anything below this line @@ -72,7 +72= ,7 @@ if not defined EDK_TOOLS_PATH ( ) else ( echo. echo !!! ERROR !!! Cannot find BaseTools !!! - echo.=20 + echo. goto BadBaseTools ) ) @@ -141,11 +141,13 @@ if defined CYGWIN_HOME ( ) =20 :cygwin_done +if /I "%1"=3D=3D"Rebuild" shift +if /I "%1"=3D=3D"ForceRebuild" shift if "%1"=3D=3D"" goto end =20 :Usage @echo. - @echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [--nt32 [X64]]= [Reconfig]" + @echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [--nt32 [X64]]= [Reconfig] [Rebuild] [ForceRebuild]" @echo --nt32 [X64] If a compiler tool chain is not available i= n the @echo environment, call a script to attempt to se= t one up. @echo This flag is only required if building the @@ -157,6 +159,8 @@ if "%1"=3D=3D"" goto end @echo rebuild. @echo. @echo Reconfig Reinstall target.txt, tools_def.txt and bui= ld_rule.txt. + @echo Rebuild Perform incremental rebuild of BaseTools bi= naries. + @echo ForceRebuild Force a full rebuild of BaseTools binaries. @echo. @echo Note that target.template, tools_def.template and build_rules.tem= plate @echo will only be copied to target.txt, tools_def.txt and build_rule.t= xt @@ -166,4 +170,3 @@ if "%1"=3D=3D"" goto end =20 :end popd - -- 2.9.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel