]> git.proxmox.com Git - mirror_edk2.git/commit
SourceLevelDebugPkg: Use Pcd for the revision of transfer protocol
authorHao Wu <hao.a.wu@intel.com>
Fri, 1 Sep 2017 01:32:10 +0000 (09:32 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 4 Sep 2017 01:01:16 +0000 (09:01 +0800)
commitc00ad62378b1594c9af0f9ebbcc2e30d05a2121e
tree978131adc5374c251b2d225de1f6ab02e203b6b6
parentdb52890926b6ecff9a416b3beda9c97c83f9fc60
SourceLevelDebugPkg: Use Pcd for the revision of transfer protocol

V3 changes:
Add detailed description for the usage of the Pcd in package DEC file.
Update the comment for the introduced Pcd in module INF files.

V2 changes:
Instead of using a global variable, use a Pcd for transfer protocol
revision.

Previously, the revision of the debug agent transfer protocol is
reflected by a macro.

This commit introduces a Pcd to reflect the revision in order to avoid the
comparison of two macros, which will generate a constant result detected
by code checkers.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
SourceLevelDebugPkg/Include/TransferProtocol.h
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
SourceLevelDebugPkg/SourceLevelDebugPkg.dec
SourceLevelDebugPkg/SourceLevelDebugPkg.uni