[edk2-devel] [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut

Laszlo Ersek lersek at redhat.com
Wed Mar 4 14:51:19 UTC 2020


On 03/04/20 10:54, Ard Biesheuvel wrote:
> On Wed, 4 Mar 2020 at 10:44, Laszlo Ersek <lersek at redhat.com> wrote:
>>
>> Repo:   https://pagure.io/lersek/edk2.git
>> Branch: timeout_var
>>
>> In the PlatformBootManagerLib instances, set the Timeout global variable
>> to the same value as PcdPlatformBootTimeOut. This way the "setvar"
>> command in the UEFI shell, and the "efibootmgr" command in a Linux
>> guest, can report the front page timeout that was requested on the QEMU
>> command line (see GetFrontPageTimeoutFromQemu() in
>> "OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
>>
>> A DEBUG_VERBOSE message is logged on success too, for our QE team's
>> sake.
>>
>> Cc: Ard Biesheuvel <ard.biesheuvel at linaro.org>
>> Cc: Jordan Justen <jordan.l.justen at intel.com>
>> Cc: Leif Lindholm <leif at nuviainc.com>
>> Cc: Philippe Mathieu-Daudé <philmd at redhat.com>
>>
>> Thanks
>> Laszlo
>>
>> Laszlo Ersek (2):
>>   OvmfPkg/PlatformBootManagerLib: sync Timeout with
>>     PcdPlatformBootTimeOut
>>   ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
>>     PcdPlatformBootTimeOut
>>
> 
> Provided that the use of the bare 'sizeof <identifier>' doesn't throw
> up any build errors with Clang (I seem to remember a report from Mike
> Kinney about this?)
> 
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>

I use the "sizeof" operator exclusively without parens if the operand is
not a type name, at least in packages that I co-maintain. I don't recall
any particular build failures (even from the edk2 CI).

Thanks!
Laszlo

> 
>>  ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c               | 27 ++++++++++++++++++--
>>  ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf |  1 +
>>  OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c                 | 26 +++++++++++++++++--
>>  OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf    |  2 ++
>>  4 files changed, 52 insertions(+), 4 deletions(-)
>>
>> --
>> 2.19.1.3.g30247aa5d201
>>
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#55417): https://edk2.groups.io/g/devel/message/55417
Mute This Topic: https://groups.io/mt/71722702/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list