BaseTools: Fix Sku inherit issue.

The final Pcd value should only be override by its parents.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Feng Bob C <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
BobCF
2017-12-27 14:03:34 +08:00
committed by Liming Gao
parent 4cc824283c
commit 09c80b07b4
2 changed files with 4 additions and 2 deletions

View File

@ -2251,6 +2251,8 @@ class SkuClass():
return self.__SkuInherit.get(skuname,"DEFAULT")
def GetSkuChain(self,sku):
if sku == "DEFAULT":
return ["DEFAULT"]
skulist = [sku]
nextsku = sku
while 1: