diff options
author | Qiu Shumin <shumin.qiu@intel.com> | 2016-05-05 13:35:42 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-13 20:43:21 +0800 |
commit | 78975fe0faf31efac199baeece8d697356a74dfc (patch) | |
tree | baf8727ab5e91e90680e2e6c2fe1cf13889760e0 /ShellPkg/ShellPkg.dsc | |
parent | 45ff5eb59fd237ff65e6530b7b7073d8dc5bedc0 (diff) | |
download | edk2-platforms-78975fe0faf31efac199baeece8d697356a74dfc.tar.xz |
ShellPkg: Remove debug message in release binaries.
Use BaseDebugLibNull instance instead of UefiDebugLibConOut to
remove the debug message in release Shell binaries.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
(cherry picked from commit d454c18a315f109c52b78e8049a7231eb01f003c)
Diffstat (limited to 'ShellPkg/ShellPkg.dsc')
-rw-r--r-- | ShellPkg/ShellPkg.dsc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc index 364a622452..25c4fadc61 100644 --- a/ShellPkg/ShellPkg.dsc +++ b/ShellPkg/ShellPkg.dsc @@ -27,7 +27,11 @@ UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
+!if $(TARGET) == RELEASE
+ DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
+!else
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
+!endif
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|