You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
The DXE and SMM versions of AcpiDebug perform the same task and are therefore mutually exclusive. Including both modules results in a duplicate ACPI table, resulting in the feature not working at all. Therefore, add a new PCD to determine which module will be included. Now, either version successfully write to the debug buffer. Cc: Sai Chaganty <rangasai.v.chaganty@intel.com> Cc: Isaac Oram <isaac.w.oram@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Ankit Sinha <ankit.sinha@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Eric Dong <eric.dong@intel.com> Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com> Reviewed-by: Isaac Oram <isaac.w.oram@intel.com>
62 lines
2.5 KiB
Plaintext
62 lines
2.5 KiB
Plaintext
## @file
|
|
# This is a build description file for the ACPI Debug advanced feature.
|
|
# This file should be included into another package DSC file to build this feature.
|
|
#
|
|
# The DEC files are used by the utilities that parse DSC and
|
|
# INF files to generate AutoGen.c and AutoGen.h files
|
|
# for the build infrastructure.
|
|
#
|
|
# Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
################################################################################
|
|
#
|
|
# Defines Section - statements that will be processed to create a Makefile.
|
|
#
|
|
################################################################################
|
|
[Defines]
|
|
!ifndef $(PEI_ARCH)
|
|
!error "PEI_ARCH must be specified to build this feature!"
|
|
!endif
|
|
!ifndef $(DXE_ARCH)
|
|
!error "DXE_ARCH must be specified to build this feature!"
|
|
!endif
|
|
|
|
################################################################################
|
|
#
|
|
# Component section - list of all components that need built for this feature.
|
|
#
|
|
# Note: The EDK II DSC file is not used to specify how compiled binary images get placed
|
|
# into firmware volume images. This section is just a list of modules to compile from
|
|
# source into UEFI-compliant binaries.
|
|
# It is the FDF file that contains information on combining binary files into firmware
|
|
# volume images, whose concept is beyond UEFI and is described in PI specification.
|
|
# There may also be modules listed in this section that are not required in the FDF file,
|
|
# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
|
|
# generated for it, but the binary will not be put into any firmware volume.
|
|
#
|
|
################################################################################
|
|
#
|
|
# Feature DXE Components
|
|
#
|
|
|
|
# @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
|
|
# is completed.
|
|
[Components.X64]
|
|
#####################################
|
|
# ACPI Debug Feature Package
|
|
#####################################
|
|
|
|
# Add library instances here that are not included in package components and should be tested
|
|
# in the package build.
|
|
|
|
# Add components here that should be included in the package build.
|
|
!if gAcpiDebugFeaturePkgTokenSpaceGuid.PcdUseSmmVersion == FALSE
|
|
AcpiDebugFeaturePkg/AcpiDebugDxeSmm/AcpiDebugDxe.inf
|
|
!else
|
|
AcpiDebugFeaturePkg/AcpiDebugDxeSmm/AcpiDebugSmm.inf
|
|
!endif
|