MdeModulePkg.dec: Change PCDs for status code.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2786 In order to support enable/disable report status code through memory or serial dynamic, change the following PCDs from [PcdsFeatureFlag] to [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]: PcdStatusCodeUseSerial PcdStatusCodeUseMemory The original plaforms can use PcdsFixedAtBuild in .dsc files to save size. Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Signed-off-by: Ming Tan <ming.tan@intel.com>
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
Report Status Code Handler PEIM which produces general handlers and hook them
|
||||
onto the PEI status code router.
|
||||
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@ -45,13 +45,13 @@ StatusCodeHandlerPeiEntry (
|
||||
// If enable UseSerial, then initialize serial port.
|
||||
// if enable UseMemory, then initialize memory status code worker.
|
||||
//
|
||||
if (FeaturePcdGet (PcdStatusCodeUseSerial)) {
|
||||
if (PcdGetBool (PcdStatusCodeUseSerial)) {
|
||||
Status = SerialPortInitialize();
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
Status = RscHandlerPpi->Register (SerialStatusCodeReportWorker);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
if (FeaturePcdGet (PcdStatusCodeUseMemory)) {
|
||||
if (PcdGetBool (PcdStatusCodeUseMemory)) {
|
||||
Status = MemoryStatusCodeInitializeWorker ();
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
Status = RscHandlerPpi->Register (MemoryStatusCodeReportWorker);
|
||||
|
Reference in New Issue
Block a user