From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: zhijux.fan@intel.com) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by groups.io with SMTP; Sun, 16 Jun 2019 22:11:18 -0700 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jun 2019 22:11:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,384,1557212400"; d="dat'59?scan'59,208,59";a="185614506" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 16 Jun 2019 22:11:18 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 16 Jun 2019 22:11:17 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.104]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.236]) with mapi id 14.03.0439.000; Mon, 17 Jun 2019 13:11:16 +0800 From: "Fan, ZhijuX" To: "devel@edk2.groups.io" CC: "Gao, Liming" , "Feng, Bob C" , "Shi, Steven" , "Lu, Shifei A" , "Zhou, Bowen" , "Oram, Isaac W" Subject: [PATCH 3/3 V2] PurleyOpenBoardPkg:Extend options in bld.bat to support Binary Cache Thread-Topic: [PATCH 3/3 V2] PurleyOpenBoardPkg:Extend options in bld.bat to support Binary Cache Thread-Index: AdUkyw3hUKZpryeKT+6gOArweo/QbQ== Date: Mon, 17 Jun 2019 05:11:15 +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: 42483 Content-Type: multipart/mixed; boundary="_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF824DDSHSMSX101ccrcor_" Content-Language: en-US --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF824DDSHSMSX101ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=3D1785 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: Shifei A Lu Cc: Xiaohu Zhou Cc: Isaac W Oram Signed-off-by: Zhiju.Fan --- Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/bld.bat | 17 +++++++= ++++++++-- Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/prebuild.bat | 4 ++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/bld.bat b/Pla= tform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/bld.bat index f624be03a9..4c809426f2 100644 --- a/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/bld.bat +++ b/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/bld.bat @@ -10,6 +10,11 @@ REM Run setlocal to take a snapshot of the environment v= ariables. endlocal is c setlocal set SCRIPT_ERROR=3D0 =20 +@if not defined BINARY_CACHE_PATH ( + echo Info: BINARY_CACHE_PATH is empty, use BinCache as default + SET BINARY_CACHE_PATH=3DBinCache +) + REM ---- Do NOT use :: for comments Inside of code blocks() ---- =20 ::********************************************************************** @@ -28,6 +33,14 @@ if /I "%1"=3D=3D"clean" ( goto :EOF ) =20 +@if "%~1" =3D=3D "cache-produce" ( + SET BINARY_CACHE_CMD_LINE=3D --hash --binary-destination=3D%BINARY_CACHE= _PATH% +) + +@if "%~1" =3D=3D "cache-consume" ( + SET BINARY_CACHE_CMD_LINE=3D --hash --binary-source=3D%BINARY_CACHE_PATH= % +) + shift GOTO :parseCmdLine =20 @@ -86,8 +99,8 @@ echo Build Start echo. echo -------------------------------------------------------------------- echo. -echo build %BUILD_CMD_LINE% --log=3D%BUILD_LOG% %BUILD_REPORT_FLAGS% -call build %BUILD_CMD_LINE% --log=3D%BUILD_LOG% %BUILD_REPORT_FLAGS% +echo build %BUILD_CMD_LINE% --log=3D%BUILD_LOG% %BUILD_REPORT_FLAGS% %BINA= RY_CACHE_CMD_LINE% +call build %BUILD_CMD_LINE% --log=3D%BUILD_LOG% %BUILD_REPORT_FLAGS% %BINA= RY_CACHE_CMD_LINE% echo -------------------------------------------------------------------- echo. echo Build End diff --git a/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/prebuild.bat = b/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/prebuild.bat index d9c1442ea1..4aba30adce 100644 --- a/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/prebuild.bat +++ b/Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/prebuild.bat @@ -182,8 +182,8 @@ set PRE_BUILD_CMD_LINE=3D%BUILD_CMD_LINE% -D MAX_SOCKET= =3D%MAX_SOCKET% set PRE_BUILD_LOG=3D%WORKSPACE%\Build\prebuild.log set PRE_BUILD_REPORT=3D%WORKSPACE%\Build\preBuildReport.txt =20 -echo build %PRE_BUILD_CMD_LINE% -m %BOARD_PKG%\Acpi\BoardAcpiDxe\Dsdt.inf = -y %PRE_BUILD_REPORT% --log=3D%PRE_BUILD_LOG% -call build %PRE_BUILD_CMD_LINE% -m %BOARD_PKG%\Acpi\BoardAcpiDxe\Dsdt.inf = -y %PRE_BUILD_REPORT% --log=3D%PRE_BUILD_LOG% +echo build %PRE_BUILD_CMD_LINE% -m %BOARD_PKG%\Acpi\BoardAcpiDxe\Dsdt.inf = -y %PRE_BUILD_REPORT% --log=3D%PRE_BUILD_LOG% %BINARY_CACHE_CMD_LINE% +call build %PRE_BUILD_CMD_LINE% -m %BOARD_PKG%\Acpi\BoardAcpiDxe\Dsdt.inf = -y %PRE_BUILD_REPORT% --log=3D%PRE_BUILD_LOG% %BINARY_CACHE_CMD_LINE% if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL% =20 @REM PSYS =3D=3D FIX0 --=20 2.14.1.windows.1 --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF824DDSHSMSX101ccrcor_ Content-Disposition: attachment; filename="winmail.dat" Content-Transfer-Encoding: base64 Content-Type: application/ms-tnef; name="winmail.dat" eJ8+IkoJAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAAEFCNUY2ODBC MjRGOUJCNDZCRTVGMDhBQUJCNkQxOTQwAGkHAQ2ABAACAAAAAgACAAEFgAMADgAAAOMHBgARAAUA CwAPAAEAIQEBIIADAA4AAADjBwYAEQAFAAsADwABACEBAQiABwAYAAAASVBNLk1pY3Jvc29mdCBN YWlsLk5vdGUAMQgBBIABAFQAAABbUEFUQ0ggMy8zIFYyXSBQdXJsZXlPcGVuQm9hcmRQa2c6RXh0 ZW5kIG9wdGlvbnMgaW4gYmxkLmJhdCB0byBzdXBwb3J0IEJpbmFyeSBDYWNoZQD3HAELgAEAIQAA AEFCNUY2ODBCMjRGOUJCNDZCRTVGMDhBQUJCNkQxOTQwAGkHAQOQBgB4EQAANAAAAAIBfwABAAAA SAAAADxGQUQwRDdFMEFFMEZBNTREOTg3RjZFNzI0MzVDQUZENTBBRjgyNEREQFNIU01TWDEwMS5j Y3IuY29ycC5pbnRlbC5jb20+AAsAHw4BAAAAAgEJEAEAAABVBwAAUQcAADERAABMWkZ1Jzzxn2EA CmZiaWQEAABjY8BwZzEyNTIA/gND8HRleHQB9wKkA+MCAARjaArAc2V0MCDvB20CgwBQEU0yCoAG tAKA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