From nobody Fri May 3 14:06:39 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1511417477875178.70667146819176; Wed, 22 Nov 2017 22:11:17 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6DFE1220757FE; Wed, 22 Nov 2017 22:06:59 -0800 (PST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 90B2D2035BB16 for ; Wed, 22 Nov 2017 22:06:57 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2017 22:11:14 -0800 Received: from shwdeopenpsi011.ccr.corp.intel.com (HELO SHWDEOPENPSI011.local) ([10.239.9.121]) by orsmga002.jf.intel.com with SMTP; 22 Nov 2017 22:11:13 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=shifeix.a.lu@intel.com; receiver=edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,440,1505804400"; d="scan'208";a="10983000" Date: Thu, 23 Nov 2017 14:11:13 +0800 From: lushifex To: edk2-devel@lists.01.org Message-ID: <6d10b3ee-5315-4653-af70-1f59df785e47@SHWDEOPENPSI011.local> X-Mailer: TortoiseGit MIME-Version: 1.0 Subject: [edk2] [Patch][edk2-platforms] Toolchain 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: , Cc: , david.wei@intel.com Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Add toolchain for VS2015 build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex --- .../PlatformSetupDxe/SetupInfoRecords.c | 30 +++++++-------- .../SmBiosMiscDxe/MiscProcessorCacheFunction.c | 8 ++-- .../VlvPlatformInitDxe/VlvPlatformInit.c | 4 +- Vlv2TbltDevicePkg/bld_vlv.bat | 45 +++++++++++++-----= ---- 4 files changed, 47 insertions(+), 40 deletions(-) diff --git a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c b/Vlv2Tb= ltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c index 8979b41..6a17643 100644 --- a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c +++ b/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
= =20 This program and the accompanying materials are licensed and made availa= ble under the terms and conditions of the BSD License that accompanies this distri= bution. =20 @@ -1186,7 +1186,7 @@ UpdatePlatformInformation ( EFI_STATUS Status; UINT8 CpuFlavor=3D0; EFI_PEI_HOB_POINTERS GuidHob; - EFI_PLATFORM_INFO_HOB *mPlatformInfo=3DNULL; + EFI_PLATFORM_INFO_HOB *PlatformInfo=3DNULL; UINTN NumHandles; EFI_HANDLE *HandleBuffer; UINTN Index; @@ -1205,7 +1205,7 @@ UpdatePlatformInformation ( GuidHob.Raw =3D GetHobList (); if (GuidHob.Raw !=3D NULL) { if ((GuidHob.Raw =3D GetNextGuidHob (&gEfiPlatformInfoGuid, GuidHob.Ra= w)) !=3D NULL) { - mPlatformInfo =3D GET_GUID_HOB_DATA (GuidHob.Guid); + PlatformInfo =3D GET_GUID_HOB_DATA (GuidHob.Guid); } } =20 @@ -1274,41 +1274,41 @@ UpdatePlatformInformation ( } HiiSetString(mHiiHandle,STRING_TOKEN(STR_CPU_FLAVOR_VALUE), Buffer, NULL= ); =20 - if ( NULL !=3D mPlatformInfo) { + if ( NULL !=3D PlatformInfo) { // //BoardId // - switch(mPlatformInfo->BoardId){ + switch(PlatformInfo->BoardId){ case 0x2: - UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY LAKE RVP(%02x)", mPl= atformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY LAKE RVP(%02x)", Pla= tformInfo->BoardId); break; =20 case 0x4: - UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY LAKE FFRD(%02x)", mP= latformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY LAKE FFRD(%02x)", Pl= atformInfo->BoardId); break; =20 case 0x5: - UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY ROCK RVP DDR3L (%02x= )", mPlatformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY ROCK RVP DDR3L (%02x= )", PlatformInfo->BoardId); break; =20 case 0x20: - UnicodeSPrint (Buffer, sizeof (Buffer), L"BAYLEY BAY (%02x)", mPla= tformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"BAYLEY BAY (%02x)", Plat= formInfo->BoardId); break; =20 case 0x30: - UnicodeSPrint (Buffer, sizeof (Buffer), L"BAKER SPORT (%02x)", mPl= atformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"BAKER SPORT (%02x)", Pla= tformInfo->BoardId); break; =20 case 0x0: - UnicodeSPrint (Buffer, sizeof (Buffer), L"ALPINE VALLEY (%x)", mPl= atformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"ALPINE VALLEY (%x)", Pla= tformInfo->BoardId); break; =20 case 0x3: - UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY LAKE FFD8 (%x)", mPl= atformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"BAY LAKE FFD8 (%x)", Pla= tformInfo->BoardId); break; =20 default: - UnicodeSPrint (Buffer, sizeof (Buffer), L"Unknown BOARD (%02x)", m= PlatformInfo->BoardId); + UnicodeSPrint (Buffer, sizeof (Buffer), L"Unknown BOARD (%02x)", P= latformInfo->BoardId); break; } HiiSetString(mHiiHandle,STRING_TOKEN(STR_BOARD_ID_VALUE), Buffer, NULL= ); @@ -1318,11 +1318,11 @@ UpdatePlatformInformation ( // Get Board FAB ID Info from protocol, update into the NVS area. // bit0~bit3 are for Fab ID, 0x0F means unknow FAB. // - if(mPlatformInfo->BoardRev =3D=3D 0x0F) { + if(PlatformInfo->BoardRev =3D=3D 0x0F) { UnicodeSPrint (Buffer, sizeof (Buffer), L"%s", L"Unknown FAB"); HiiSetString(mHiiHandle,STRING_TOKEN(STR_FAB_ID_VALUE), Buffer, NULL= ); } else { - UnicodeSPrint (Buffer, sizeof (Buffer), L"%2x", mPlatformInfo->Board= Rev); + UnicodeSPrint (Buffer, sizeof (Buffer), L"%2x", PlatformInfo->BoardR= ev); HiiSetString(mHiiHandle,STRING_TOKEN(STR_FAB_ID_VALUE), Buffer, NULL= ); } } diff --git a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorCacheFunction.c b= /Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorCacheFunction.c index b18a6aa..f38bfc4 100644 --- a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorCacheFunction.c +++ b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscProcessorCacheFunction.c @@ -1,6 +1,6 @@ /*++ =20 -Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
= =20 This program and the accompanying materials are licensed and made availa= ble under the terms and conditions of the BSD License that accompanies this distri= bution. =20 @@ -29,9 +29,9 @@ Abstract: #include =20 =20 -extern SMBIOS_TABLE_TYPE7 *SmbiosRecordL1; -extern SMBIOS_TABLE_TYPE7 *SmbiosRecordL2; -extern SMBIOS_TABLE_TYPE7 *SmbiosRecordL3; +extern SMBIOS_TABLE_TYPE7 *mSmbiosRecordL1; +extern SMBIOS_TABLE_TYPE7 *mSmbiosRecordL2; +extern SMBIOS_TABLE_TYPE7 *mSmbiosRecordL3; =20 =20 UINT32 diff --git a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInit.c b/Vlv2T= bltDevicePkg/VlvPlatformInitDxe/VlvPlatformInit.c index 5e8d95a..5bbafa6 100644 --- a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInit.c +++ b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInit.c @@ -1,7 +1,7 @@ =20 /*++ =20 -Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved +Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved = =20 This program and the accompanying materials are licensed and made availa= ble under the terms and conditions of the BSD License that accompanies this distri= bution. =20 @@ -147,7 +147,7 @@ PostPmInitCallBack ( EFI_STATUS IgdPmHook ( IN EFI_HANDLE ImageHandle, - IN DXE_VLV_PLATFORM_POLICY_PROTOCOL *DxePlatformSaPolicy + IN DXE_VLV_PLATFORM_POLICY_PROTOCOL *mDxePlatformSaPolicy ) { =20 diff --git a/Vlv2TbltDevicePkg/bld_vlv.bat b/Vlv2TbltDevicePkg/bld_vlv.bat index 1f3695b..d3fac09 100644 --- a/Vlv2TbltDevicePkg/bld_vlv.bat +++ b/Vlv2TbltDevicePkg/bld_vlv.bat @@ -135,20 +135,20 @@ if /i "%~2" =3D=3D "RELEASE" ( :: Additional EDK Build Setup/Configuration ::********************************************************************** echo. -echo Setting the Build environment for VS2008/VS2010/VS2012/VS2013... -if defined VS90COMNTOOLS ( - if not defined VSINSTALLDIR call "%VS90COMNTOOLS%\vsvars32.bat" - if /I "%VS90COMNTOOLS%" =3D=3D "C:\Program Files\Microsoft Visual Studi= o 9.0\Common7\Tools\" ( - set TOOL_CHAIN_TAG=3DVS2008 - ) else ( - set TOOL_CHAIN_TAG=3DVS2008x86 - ) - ) else if defined VS100COMNTOOLS ( - if not defined VSINSTALLDIR call "%VS100COMNTOOLS%\vsvars32.bat" - if /I "%VS100COMNTOOLS%" =3D=3D "C:\Program Files\Microsoft Visual Studi= o 10.0\Common7\Tools\" ( - set TOOL_CHAIN_TAG=3DVS2010 +echo Setting the Build environment for VS2015/VS2013/VS2012/VS2010/VS2008.= .. +if defined VS140COMNTOOLS ( + if not defined VSINSTALLDIR call "%VS140COMNTOOLS%\vsvars32.bat" + if /I "%VS140COMNTOOLS%" =3D=3D "C:\Program Files\Microsoft Visual Studi= o 14.0\Common7\Tools\" ( + set TOOL_CHAIN_TAG=3DVS2015 ) else ( - set TOOL_CHAIN_TAG=3DVS2010x86 + set TOOL_CHAIN_TAG=3DVS2015x86 + )=20 +) else if defined VS120COMNTOOLS ( + if not defined VSINSTALLDIR call "%VS120COMNTOOLS%\vsvars32.bat" + if /I "%VS120COMNTOOLS%" =3D=3D "C:\Program Files\Microsoft Visual Studi= o 12.0\Common7\Tools\" ( + set TOOL_CHAIN_TAG=3DVS2013 + ) else ( + set TOOL_CHAIN_TAG=3DVS2013x86 ) ) else if defined VS110COMNTOOLS ( if not defined VSINSTALLDIR call "%VS110COMNTOOLS%\vsvars32.bat" @@ -157,15 +157,22 @@ if defined VS90COMNTOOLS ( ) else ( set TOOL_CHAIN_TAG=3DVS2012x86 ) -) else if defined VS120COMNTOOLS ( - if not defined VSINSTALLDIR call "%VS120COMNTOOLS%\vsvars32.bat" - if /I "%VS120COMNTOOLS%" =3D=3D "C:\Program Files\Microsoft Visual Studi= o 12.0\Common7\Tools\" ( - set TOOL_CHAIN_TAG=3DVS2013 +) else if defined VS100COMNTOOLS ( + if not defined VSINSTALLDIR call "%VS100COMNTOOLS%\vsvars32.bat" + if /I "%VS100COMNTOOLS%" =3D=3D "C:\Program Files\Microsoft Visual Studi= o 10.0\Common7\Tools\" ( + set TOOL_CHAIN_TAG=3DVS2010 ) else ( - set TOOL_CHAIN_TAG=3DVS2013x86 + set TOOL_CHAIN_TAG=3DVS2010x86 ) +) else if defined VS90COMNTOOLS ( + if not defined VSINSTALLDIR call "%VS90COMNTOOLS%\vsvars32.bat" + if /I "%VS90COMNTOOLS%" =3D=3D "C:\Program Files\Microsoft Visual Studi= o 9.0\Common7\Tools\" ( + set TOOL_CHAIN_TAG=3DVS2008 + ) else ( + set TOOL_CHAIN_TAG=3DVS2008x86 + ) ) else ( - echo --ERROR: VS2008/VS2010/VS2012/VS2013 not installed correctly. VS90= COMNTOOLS/VS100COMNTOOLS/VS110COMNTOOLS/VS120COMNTOOLS not defined ^^! + echo --ERROR: VS2015/VS2013/VS2012/VS2010/VS2008 not installed correctl= y. VS140COMNTOOLS/VS120COMNTOOLS/VS110COMNTOOLS/VS100COMNTOOLS/VS90COMNTOOL= S not defined ^^! echo. goto :BldFail ) --=20 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel