mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-17 15:48:10 +02:00
Remove the SmbiosTablePublishEntry() function from "SmbiosPlatformDxe.c". "SmbiosPlatformDxe.c" becomes hypervisor-agnostic. Add SmbiosTablePublishEntry() back, simplified for QEMU, to the existent file "Qemu.c". The GetQemuSmbiosTables() function no longer needs to be declared in "SmbiosPlatformDxe.h"; "SmbiosPlatformDxe.h" becomes hypervisor-agnostic. Add SmbiosTablePublishEntry() back, renamed and simplified for Xen, to the new, arch-independent file "Xen.c". (The existent Xen-specific C files are arch-dependent.) Update both INF files; remove the dependencies that are now superfluous in each. Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Julien Grall <julien@xen.org> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20210526201446.12554-43-lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
52 lines
1.2 KiB
INI
52 lines
1.2 KiB
INI
## @file
|
|
# This driver installs SMBIOS information for OVMF
|
|
#
|
|
# Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>
|
|
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = SmbiosPlatformDxe
|
|
FILE_GUID = 4110465d-5ff3-4f4b-b580-24ed0d06747a
|
|
MODULE_TYPE = DXE_DRIVER
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = SmbiosTablePublishEntry
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 EBC ARM AARCH64
|
|
#
|
|
|
|
[Sources]
|
|
Qemu.c
|
|
SmbiosPlatformDxe.c
|
|
SmbiosPlatformDxe.h
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
OvmfPkg/OvmfPkg.dec
|
|
|
|
[LibraryClasses]
|
|
DebugLib
|
|
MemoryAllocationLib
|
|
PcdLib
|
|
QemuFwCfgLib
|
|
UefiBootServicesTableLib
|
|
UefiDriverEntryPoint
|
|
|
|
[Pcd]
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated
|
|
|
|
[Protocols]
|
|
gEfiSmbiosProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
|
|
|
[Depex]
|
|
gEfiSmbiosProtocolGuid
|
|
|