From 09c80b07b4a9d3a8b89ffdc55967d38cc651e27e Mon Sep 17 00:00:00 2001 From: BobCF Date: Wed, 27 Dec 2017 14:03:34 +0800 Subject: 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 Reviewed-by: Liming Gao --- BaseTools/Source/Python/Common/Misc.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BaseTools/Source/Python/Common/Misc.py') diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 15ad9e4f2e..a8ed718aa5 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -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: -- cgit v1.2.3