From daec2446ae91239db9fbe9f9856d6b982716dc85 Mon Sep 17 00:00:00 2001 From: "Tan, Ming" Date: Tue, 16 Jun 2020 19:25:49 +0800 Subject: Features/Intel/PostCodeDebugFeaturePkg: add it. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2478 The PostCodeDebugFeaturePkg include some useful post code debug libraries, such as get post code from status code and show it. It provide a library PostCodeStatusCodeHandlerLib used by edk2 StatusCodeHandler.efi, used to show the post code. It also provide a library of PostCodeMap lib, it map the status code to post code. Cc: Liming Gao Signed-off-by: Ming Tan Reviewed-by: Eric Dong Reviewed-by: Dandan Bi --- .../PostCodeDebugFeaturePkg.dec | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Features/Intel/Debugging/PostCodeDebugFeaturePkg/PostCodeDebugFeaturePkg.dec (limited to 'Features/Intel/Debugging/PostCodeDebugFeaturePkg/PostCodeDebugFeaturePkg.dec') diff --git a/Features/Intel/Debugging/PostCodeDebugFeaturePkg/PostCodeDebugFeaturePkg.dec b/Features/Intel/Debugging/PostCodeDebugFeaturePkg/PostCodeDebugFeaturePkg.dec new file mode 100644 index 0000000000..5ba7b30ab6 --- /dev/null +++ b/Features/Intel/Debugging/PostCodeDebugFeaturePkg/PostCodeDebugFeaturePkg.dec @@ -0,0 +1,32 @@ +## @file +# This package provides PostCode Debug feature. +# This package should only depend on EDK II Core packages, IntelSiliconPkg, and MinPlatformPkg. +# +# 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) 2020, Intel Corporation. All rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + DEC_SPECIFICATION = 0x00010017 + PACKAGE_NAME = PostCodeDebugFeaturePkg + PACKAGE_GUID = A579E0A8-0D27-4CA6-900E-D613003729DE + PACKAGE_VERSION = 0.1 + +[Includes] + Include + +[LibraryClasses] + ## @libraryclass Provide the function to map the status code to post code. + PostCodeMapLib|Include/Library/PostCodeMapLib.h + +[Guids] + gPostCodeDebugFeaturePkgTokenSpaceGuid = {0x68886ac8, 0x7a29, 0x4845, {0xa7, 0x02, 0xe9, 0x83, 0xc8, 0x7f, 0xfb, 0xab}} + +[PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] + gPostCodeDebugFeaturePkgTokenSpaceGuid.PcdStatusCodeUsePostCode|FALSE|BOOLEAN|0x00000001 -- cgit v1.2.3