summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2018-02-21 10:09:03 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-02-24 09:20:29 +0800
commit4eb8a350c689c1637d7372b378c3e09a450e9625 (patch)
tree2aae4772c46c954ceb95eaeaf62961c7e4a1df31 /BaseTools
parenteca073d92f3d2e818ed259249a964c4a64c10446 (diff)
downloadedk2-4eb8a350c689c1637d7372b378c3e09a450e9625.tar.gz
edk2-4eb8a350c689c1637d7372b378c3e09a450e9625.tar.bz2
edk2-4eb8a350c689c1637d7372b378c3e09a450e9625.zip
BaseTools: Fix the bug to display the single SKUID info
when defined SKUID_IDENTIFIER = DEFAULT|TEST in DSC [Defines] section, per spec it means current SKUID is single, the bug is build report print both DEFAULT and TEST info, it should only print TEST. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> (cherry picked from commit 8aaa8f7bc0f5dc79bce476e2ffa8a956c4db8bb0)
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/Common/Misc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py
index b13e35cd75..1461d00669 100644
--- a/BaseTools/Source/Python/Common/Misc.py
+++ b/BaseTools/Source/Python/Common/Misc.py
@@ -2239,6 +2239,10 @@ class SkuClass():
GlobalData.gSkuids = (self.SkuIdSet)
if 'COMMON' in GlobalData.gSkuids:
GlobalData.gSkuids.remove('COMMON')
+ if self.SkuUsageType == self.SINGLE:
+ if len(GlobalData.gSkuids) != 1:
+ if 'DEFAULT' in GlobalData.gSkuids:
+ GlobalData.gSkuids.remove('DEFAULT')
if GlobalData.gSkuids:
GlobalData.gSkuids.sort()