From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: zhijux.fan@intel.com) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by groups.io with SMTP; Thu, 30 May 2019 18:40:15 -0700 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 18:40:15 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga006.fm.intel.com with ESMTP; 30 May 2019 18:40:14 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 30 May 2019 18:40:14 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.188]) with mapi id 14.03.0415.000; Fri, 31 May 2019 09:40:12 +0800 From: "Fan, ZhijuX" To: "devel@edk2.groups.io" CC: "Gao, Liming" , "Feng, Bob C" , "Shi, Steven" , "Chiu, Chasel" , "Kubacki, Michael A" , "Desimone, Nathaniel L" Subject: [PATCH 3/4] KabylakeOpenBoardPkg:Extend options in bld.bat to support Binary Cache Thread-Topic: [PATCH 3/4] KabylakeOpenBoardPkg:Extend options in bld.bat to support Binary Cache Thread-Index: AdUXUcjM7pQp+FCHT0S8zRf39e8yqw== Date: Fri, 31 May 2019 01:40:12 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: zhijux.fan@intel.com X-Groupsio-MsgNum: 41699 Content-Type: multipart/mixed; boundary="_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF6EB9FSHSMSX101ccrcor_" Content-Language: en-US --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF6EB9FSHSMSX101ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=3D1784 Need extend the options in the Kabylake build bld.bat file to support Binary Cache. BINARY_CACHE_PATH: if BINARY_CACHE_PATH is empty, use BinCache as default path Add "cache-produce" and "cache-consume" to command line, Used to generate and use Binary Cache files. Cc: Liming Gao Cc: Bob Feng Cc: Steven Shi Cc: Chasel Chiu Cc: Michael Kubacki Cc: Nate DeSimone --- Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/bld.bat | 23 ++++++++++++= +++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/bld.bat b/Pla= tform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/bld.bat index 449660b75d..af397a3115 100644 --- a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/bld.bat +++ b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/bld.bat @@ -62,6 +62,11 @@ copy /y /b %WORKSPACE_FSP_BIN%\KabylakeFspBinPkg\Fsp_Reb= ased_S.fd+%WORKSPACE_FSP @SET REBUILD_MODE=3D @SET BUILD_ROM_ONLY=3D =20 +@if not defined BINARY_CACHE_PATH ( + echo Info: BINARY_CACHE_PATH is empty, use BinCache as default + SET BINARY_CACHE_PATH=3DBinCache +) + :: Loop through arguements until all are processed =20 :BUILD_FLAGS_LOOP @@ -87,6 +92,19 @@ copy /y /b %WORKSPACE_FSP_BIN%\KabylakeFspBinPkg\Fsp_Reb= ased_S.fd+%WORKSPACE_FSP shift goto BUILD_FLAGS_LOOP ) + +@if "%~1" =3D=3D "cache-produce" ( + SET BINARY_CACHE_CMD_LINE=3D --hash --binary-destination=3D%BINARY_CACHE= _PATH% + shift + goto BUILD_FLAGS_LOOP +) + +@if "%~1" =3D=3D "cache-consume" ( + SET BINARY_CACHE_CMD_LINE=3D --hash --binary-source=3D%BINARY_CACHE_PATH= % + shift + goto BUILD_FLAGS_LOOP +) + :: Unknown build flag. shift goto BUILD_FLAGS_LOOP @@ -99,11 +117,12 @@ goto BUILD_FLAGS_LOOP @echo SILENT_MODE =3D %SILENT_MODE% @echo REBUILD_MODE =3D %REBUILD_MODE% @echo BUILD_ROM_ONLY =3D %BUILD_ROM_ONLY% +@echo BINARY_CACHE_CMD_LINE =3D %BINARY_CACHE_CMD_LINE% @echo. =20 @if %SILENT_MODE% EQU TRUE goto BldSilent =20 -call build -n %NUMBER_OF_PROCESSORS% %REBUILD_MODE% %EXT_BUILD_FLAGS% +call build -n %NUMBER_OF_PROCESSORS% %REBUILD_MODE% %EXT_BUILD_FLAGS% %BIN= ARY_CACHE_CMD_LINE% =20 @if %ERRORLEVEL% NEQ 0 goto BldFail @echo. @@ -122,7 +141,7 @@ call %WORKSPACE_PLATFORM%\%PROJECT%\postbuild.bat %BUIL= D_ROM_ONLY% @echo ********************************************************************= **** >> Build.log @echo. >> Build.log =20 -call build -n %NUMBER_OF_PROCESSORS% %REBUILD_MODE% %EXT_BUILD_FLAGS% 1>>B= uild.log 2>&1 +call build -n %NUMBER_OF_PROCESSORS% %REBUILD_MODE% %EXT_BUILD_FLAGS% %BIN= ARY_CACHE_CMD_LINE% 1>>Build.log 2>&1 =20 @if %ERRORLEVEL% NEQ 0 goto BldFail @echo. >> Build.log --=20 2.14.1.windows.1 --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF6EB9FSHSMSX101ccrcor_ Content-Disposition: attachment; filename="winmail.dat" Content-Transfer-Encoding: base64 Content-Type: application/ms-tnef; name="winmail.dat" eJ8+InxRAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAAEVGNEQ4MzE5 NzMwNzNDNEM4NkU2QTgyMDU4NUIzMEFCACQHAQ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