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 8aaa8f7bc0
)
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user