From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 EE93621A04E09 for ; Fri, 12 May 2017 01:35:00 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 May 2017 01:35:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,328,1491289200"; d="scan'208";a="86713555" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 12 May 2017 01:35:00 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 12 May 2017 01:35:00 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 12 May 2017 01:34:59 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.193]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.224]) with mapi id 14.03.0319.002; Fri, 12 May 2017 16:34:55 +0800 From: "Lu, ShifeiX A" To: "Wei, David" CC: "edk2-devel@lists.01.org" , "Lu, ShifeiX A" Thread-Topic: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Fix some GCC build error. Thread-Index: AQHSyuM/6D87B31Sl0a4WdZgVu06YqHwX0Kw Date: Fri, 12 May 2017 08:34:55 +0000 Message-ID: <757C127295B34C4F87D5D410F91973176825432F@SHSMSX101.ccr.corp.intel.com> References: <20170512054716.27924-1-david.wei@intel.com> In-Reply-To: <20170512054716.27924-1-david.wei@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWI5MThhZmEtYWE3NS00MjU1LWFjZGItMWQwYzc2MmRlYWNiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Im1xakJ5dUxQS2s2alJISlF6cElXTEFUdXVNTmZyZXUxbW1EUHlPaUx5eWM9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Fix some GCC build error. 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, 12 May 2017 08:35:01 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: lushifex Shifei -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of zwei= 4 Sent: Friday, May 12, 2017 1:47 PM To: edk2-devel@lists.01.org Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Fix some= GCC build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 --- Platform/BroxtonPlatformPkg/BuildBios.sh | 2 = +- .../DxeFspWrapperPlatformResetLib/DxeFspWrapperPlatformResetLib.c | 2 = +- .../Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c | 4 = ++-- Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc | 2 = +- .../SampleCode/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 2 = +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Platform/BroxtonPlatformPkg/BuildBios.sh b/Platform/BroxtonPla= tformPkg/BuildBios.sh index 8702fbeaa..3963c887a 100644 --- a/Platform/BroxtonPlatformPkg/BuildBios.sh +++ b/Platform/BroxtonPlatformPkg/BuildBios.sh @@ -211,7 +211,7 @@ fi ## Additional EDK Build Setup/Configuration ##********************************************************************** echo "Ensuring correct build directory is present for GenBiosId..." -ACTIVE_PLATFORM=3D$PLATFORM_PACKAGE/PlatformPkgX64.dsc +ACTIVE_PLATFORM=3D$PLATFORM_PACKAGE/PlatformPkgX64Gcc.dsc #TOOL_CHAIN_TAG=3DGCC47 MAX_CONCURRENT_THREAD_NUMBER=3D1 sed -i '/^ACTIVE_PLATFORM/d' $WORKSPACE/Conf/target.txt diff --git a/Platf= orm/BroxtonPlatformPkg/Common/FspSupport/Library/DxeFspWrapperPlatformReset= Lib/DxeFspWrapperPlatformResetLib.c b/Platform/BroxtonPlatformPkg/Common/Fs= pSupport/Library/DxeFspWrapperPlatformResetLib/DxeFspWrapperPlatformResetLi= b.c index 4474eafaf..b7b57c517 100644 --- a/Platform/BroxtonPlatformPkg/Common/FspSupport/Library/DxeFspWrapperPl= atformResetLib/DxeFspWrapperPlatformResetLib.c +++ b/Platform/BroxtonPlatformPkg/Common/FspSupport/Library/DxeFspWrappe +++ rPlatformResetLib/DxeFspWrapperPlatformResetLib.c @@ -33,7 +33,7 @@ CallFspWrapperResetSystem ( IN UINT32 ResetType ) { - EFI_RESET_TYPE EfiResetType; + EFI_RESET_TYPE EfiResetType =3D EfiResetCold; =20 switch (ResetType) { case FSP_STATUS_RESET_REQUIRED_COLD: diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPr= eMemPei/PlatformInitPreMem.c b/Platform/BroxtonPlatformPkg/Common/PlatformS= ettings/PlatformPreMemPei/PlatformInitPreMem.c index 630c2c1d1..d7ef4970b 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei= /PlatformInitPreMem.c +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMem +++ Pei/PlatformInitPreMem.c @@ -893,7 +893,7 @@ PlatformInitPreMemEntryPoint ( DRAM_POLICY_PPI *DramPolicy; EFI_PEI_PPI_DESCRIPTOR *NewPeiPpiDescriptor; EFI_BOOT_MODE BootMode; - CarMapStruc *CarMap; + CarMapStruc *CarMap =3D NULL; SYSTEM_CONFIGURATION SystemConfiguration; UINTN VariableSize; EFI_PEI_HOB_POINTERS Hob; @@ -938,7 +938,7 @@ PlatformInitPreMemEntryPoint ( &gBoardPreMemInitPpiGuid, Instance, &PeiPpiDescriptor, - &BoardPreMemInitPpi + (VOID **)&BoardPreMemInitPpi ); =20 if (Status =3D=3D EFI_NOT_FOUND) { diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc b/Platform/B= roxtonPlatformPkg/PlatformPkgX64Gcc.dsc index 1339b44b2..42f068a38 100644 --- a/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc @@ -177,5 +177,5 @@ #[BuildOptions.Common] =20 [BuildOptions.Common.EDKII] - !include PlatformDsc/BuildOptions.EDKII.dsc + !include PlatformDsc/BuildOptions.EDKII.Gcc.dsc =20 diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/SampleCode/MdeModulePkg/Univer= sal/Variable/RuntimeDxe/Variable.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Sample= Code/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 9fcb55197..316e5c745 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/SampleCode/MdeModulePkg/Universal/Var= iable/RuntimeDxe/Variable.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/SampleCode/MdeModulePkg/Universal/ +++ Variable/RuntimeDxe/Variable.c @@ -1122,7 +1122,7 @@ Reclaim ( VARIABLE_POINTER_TRACK VarErrFlagPtr; =20 Status =3D EFI_SUCCESS; - + VariableSize =3D 0; UpdatingVariable =3D NULL; UpdatingInDeletedTransition =3D NULL; =20 -- 2.11.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel