From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 E4EB41A1E57 for ; Tue, 25 Oct 2016 01:26:46 -0700 (PDT) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6D04161E4C; Tue, 25 Oct 2016 08:26:46 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-71.phx2.redhat.com [10.3.116.71]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9P8QhGt008314; Tue, 25 Oct 2016 04:26:44 -0400 To: Ard Biesheuvel References: <20161021212737.15974-1-lersek@redhat.com> Cc: Jordan Justen , edk2-devel-01 , Liming Gao , Michael D Kinney , Gary Lin , Leif Lindholm , Michael Zimmermann From: Laszlo Ersek Message-ID: <602b784b-2c83-68ed-9ba1-8ada0161e9f9@redhat.com> Date: Tue, 25 Oct 2016 10:26:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 25 Oct 2016 08:26:46 +0000 (UTC) Subject: Re: [PATCH 00/19] OvmfPkg, ArmVirtPkg: leave deprecated interfaces behind X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2016 08:26:47 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 10/24/16 10:04, Ard Biesheuvel wrote: > On 21 October 2016 at 22:27, Laszlo Ersek wrote: >> This series intends to solve the following BZs: >> >> -- OvmfPkg: Add >> the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package DSC >> files >> >> -- ArmVirtPkg: >> Add the build option "/D DISABLE_NEW_DEPRECATED_INTERFACES" in package >> DSC files >> >> Public branch: >> . >> >> The DISABLE_NEW_DEPRECATED_INTERFACES feature test macro disables the >> following MdePkg library class APIs: >> >> BaseLib: >> - StrCpy, StrnCpy, StrCat, StrnCat, UnicodeStrToAsciiStr, >> - AsciiStrCpy, AsciiStrnCpy, AsciiStrCat, AsciiStrnCat, >> AsciiStrToUnicodeStr. >> >> PcdLib: >> - PcdSet8, PcdSet16, PcdSet32, PcdSet64, PcdSetPtr, PcdSetBool, >> - PcdSetEx8, PcdSetEx16, PcdSetEx32, PcdSetEx64, PcdSetExPtr, >> PcdSetExBool. >> >> UefiLib: >> - GetVariable, GetEfiGlobalVariable. >> >> The series gradually weans the OvmfPkg and ArmVirtPkg modules off these. >> For the 32-bit ARM builds of ArmVirtPkg platforms, I had to dip my toes >> into ArmPkg a little bit, due to dependencies. >> >> I couldn't build-test some changes (for example, the only compiler >> toolchains I have access to at the moment are GCC48 for Ia32/X64, and >> GCC5 for ARM/AARCH64). Some changes I could build, but not functionally >> test (Xen en bloc, 32-bit ARM, RAM-emulated variables in OVMF, -bios >> flag). For all of these, I liberally sprinkled the patches with Cc's and >> Notes sections, asking for help. I did make an honest effort to build >> the ArmVirt and OVMF platforms in as many configurations (-D ...) as I >> could think of, perusing the various !if directives in the DSC files. >> > > I tried ArmVirtQemu.dsc in DEBUG mode with RVCTLINUX, and it built fine* > > Tested-by: Ard Biesheuvel # RVCT Okay, I'll add this tag to the ArmVirtPkg patches. Thanks, Laszlo > > Thanks, > Ard. > > > * In general, RVCT tends to fall over quite regularly due to its > finicky diagnostics, so I did have to apply this patch > > """ > diff --git a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c > b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c > index ca61ac5e1983..1098d9501cc7 100644 > --- a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c > +++ b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c > @@ -891,7 +891,7 @@ NorFlashRead ( > SEND_NOR_COMMAND (Instance->DeviceBaseAddress, 0, P30_CMD_READ_ARRAY); > > // Readout the data > - AlignedCopyMem (Buffer, (VOID *)StartAddress + Offset, BufferSizeInBytes); > + AlignedCopyMem (Buffer, (VOID *)(StartAddress + Offset), BufferSizeInBytes); > > return EFI_SUCCESS; > } > diff --git a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf > b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf > index 812dafd065b2..0ef7b8d81bbc 100644 > --- a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf > +++ b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf > @@ -71,3 +71,7 @@ [Depex] > # NorFlashDxe must be loaded before VariableRuntimeDxe in case > empty flash needs populating with default values > # > BEFORE gVariableRuntimeDxeFileGuid > + > +[BuildOptions] > + RVCT:*_*_*_CC_FLAGS = --diag_suppress=6314 > + > """ > > but these changes are entirely unrelated to the series, and I will > follow up with some patches to fix this. > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >