VirtualBox

Ignore:
Timestamp:
Sep 11, 2019 8:46:37 AM (5 years ago)
Author:
vboxsync
Message:

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.c

    r77662 r80721  
    22  Null Dxe Capsule Library instance does nothing and returns unsupport status.
    33
    4 Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
    5 This program and the accompanying materials
    6 are licensed and made available under the terms and conditions of the BSD License
    7 which accompanies this distribution.  The full text of the license may be found at
    8 http://opensource.org/licenses/bsd-license.php
    9 
    10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     4Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
     5SPDX-License-Identifier: BSD-2-Clause-Patent
    126
    137**/
     
    9286}
    9387
     88
     89/**
     90  This routine is called to check if CapsuleOnDisk flag in OsIndications Variable
     91  is enabled.
     92
     93  @retval TRUE     Flag is enabled
     94  @retval FALSE    Flag is not enabled
     95
     96**/
     97BOOLEAN
     98EFIAPI
     99CoDCheckCapsuleOnDiskFlag(
     100  VOID
     101  )
     102{
     103  return FALSE;
     104}
     105
     106/**
     107  This routine is called to clear CapsuleOnDisk flags including OsIndications and BootNext variable.
     108
     109  @retval EFI_SUCCESS   All Capsule On Disk flags are cleared
     110
     111**/
     112EFI_STATUS
     113EFIAPI
     114CoDClearCapsuleOnDiskFlag(
     115  VOID
     116  )
     117{
     118  return EFI_UNSUPPORTED;
     119}
     120
     121/**
     122  Relocate Capsule on Disk from EFI system partition.
     123
     124  Two solution to deliver Capsule On Disk:
     125  Solution A: If PcdCapsuleInRamSupport is enabled, relocate Capsule On Disk to memory and call UpdateCapsule().
     126  Solution B: If PcdCapsuleInRamSupport is disabled, relocate Capsule On Disk to a platform-specific NV storage
     127  device with BlockIo protocol.
     128
     129  Device enumeration like USB costs time, user can input MaxRetry to tell function to retry.
     130  Function will stall 100ms between each retry.
     131
     132  Side Effects:
     133    Capsule Delivery Supported Flag in OsIndication variable and BootNext variable will be cleared.
     134    Solution B: Content corruption. Block IO write directly touches low level write. Orignal partitions, file
     135  systems of the relocation device will be corrupted.
     136
     137  @param[in]    MaxRetry             Max Connection Retry. Stall 100ms between each connection try to ensure
     138                                     devices like USB can get enumerated. Input 0 means no retry.
     139
     140  @retval EFI_SUCCESS   Capsule on Disk images are successfully relocated.
     141
     142**/
     143EFI_STATUS
     144EFIAPI
     145CoDRelocateCapsule(
     146  UINTN     MaxRetry
     147  )
     148{
     149  return EFI_UNSUPPORTED;
     150}
     151
     152/**
     153  Remove the temp file from the root of EFI System Partition.
     154  Device enumeration like USB costs time, user can input MaxRetry to tell function to retry.
     155  Function will stall 100ms between each retry.
     156
     157  @param[in]    MaxRetry             Max Connection Retry. Stall 100ms between each connection try to ensure
     158                                     devices like USB can get enumerated. Input 0 means no retry.
     159
     160  @retval EFI_SUCCESS   Remove the temp file successfully.
     161
     162**/
     163EFI_STATUS
     164EFIAPI
     165CoDRemoveTempFile (
     166  UINTN    MaxRetry
     167  )
     168{
     169  return EFI_UNSUPPORTED;
     170}
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf

    r58459 r80721  
    33#  It can make core modules pass package level build.
    44#
    5 #  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
     5#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
    66#
    7 #  This program and the accompanying materials
    8 #  are licensed and made available under the terms and conditions of the BSD License
    9 #  which accompanies this distribution. The full text of the license may be found at
    10 #  http://opensource.org/licenses/bsd-license.php
    11 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    12 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     7#  SPDX-License-Identifier: BSD-2-Clause-Patent
    138#
    149#
     
    2722# The following information is for reference only and not required by the build tools.
    2823#
    29 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC
     24#  VALID_ARCHITECTURES           = IA32 X64 EBC
    3025#
    3126
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.uni

    r77662 r80721  
    66// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
    77//
    8 // This program and the accompanying materials
    9 // are licensed and made available under the terms and conditions of the BSD License
    10 // which accompanies this distribution. The full text of the license may be found at
    11 // http://opensource.org/licenses/bsd-license.php
    12 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    13 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     8// SPDX-License-Identifier: BSD-2-Clause-Patent
    149//
    1510// **/
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette