diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-02-21 10:09:03 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-02-23 18:48:03 +0800 |
commit | 8aaa8f7bc0f5dc79bce476e2ffa8a956c4db8bb0 (patch) | |
tree | 0ade00b8215349b0bdc5885dbee54acb98244bb4 /BaseTools/Source/Python/Common/Misc.py | |
parent | a87e79d9d64a73f1c8368e2b7f309954271c69a7 (diff) | |
download | edk2-8aaa8f7bc0f5dc79bce476e2ffa8a956c4db8bb0.tar.gz edk2-8aaa8f7bc0f5dc79bce476e2ffa8a956c4db8bb0.tar.bz2 edk2-8aaa8f7bc0f5dc79bce476e2ffa8a956c4db8bb0.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>
Diffstat (limited to 'BaseTools/Source/Python/Common/Misc.py')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 4 |
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()
|