mirror of https://github.com/acidanthera/audk.git
BaseTools: SKU inheritance.
If the SkuB's parent SkuA is not in SKUID_IDENTIFIER, then make SkuB inherit from SkuA as if the SKUID_INDENTIFIER is ALL. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: ZhiqiangX Zhao <zhiqiangx.zhao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
4c6fda33c8
commit
84a52d4d03
|
@ -1334,8 +1334,7 @@ class DscBuildData(PlatformBuildClassObject):
|
|||
|
||||
Pcds = AllPcds
|
||||
DefaultStoreMgr = DefaultStore(self.DefaultStores)
|
||||
SkuIds = self.SkuIdMgr.AvailableSkuIdSet
|
||||
SkuIds.update({TAB_DEFAULT:0})
|
||||
SkuIds = self.SkuIds
|
||||
DefaultStores = {storename for pcdobj in AllPcds.values() for skuobj in pcdobj.SkuInfoList.values() for storename in skuobj.DefaultStoreDict}
|
||||
|
||||
S_PcdSet = []
|
||||
|
@ -2145,7 +2144,7 @@ class DscBuildData(PlatformBuildClassObject):
|
|||
CApp = CApp + ' Initialize_%s_%s_%s_%s();\n' % (self.SkuIdMgr.SystemSkuId, TAB_DEFAULT_STORES_DEFAULT, Pcd.TokenSpaceGuidCName, Pcd.TokenCName)
|
||||
else:
|
||||
for SkuName in self.SkuIdMgr.SkuOverrideOrder():
|
||||
if SkuName not in Pcd.SkuOverrideValues:
|
||||
if SkuName not in self.SkuIdMgr.AvailableSkuIdSet:
|
||||
continue
|
||||
for DefaultStoreName in Pcd.SkuOverrideValues[SkuName]:
|
||||
CApp = CApp + ' Initialize_%s_%s_%s_%s();\n' % (SkuName, DefaultStoreName, Pcd.TokenSpaceGuidCName, Pcd.TokenCName)
|
||||
|
|
Loading…
Reference in New Issue