diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2014-08-30 12:59:03 +0000 |
---|---|---|
committer | bobfeng <bobfeng@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-30 12:59:03 +0000 |
commit | 12d37ace00de68076f487a4cfcf84f8f1de6acd0 (patch) | |
tree | 9479a6ae73d6f1ac5ca1107d04f216f14cb63dfd /BaseTools/Source/Python/AutoGen | |
parent | 284065b0a190584412d78cf77dbd833170b3814a (diff) | |
download | edk2-platforms-12d37ace00de68076f487a4cfcf84f8f1de6acd0.tar.xz |
This patch is going to fix the issue of only Default SkuId is built into the External Pcd DataBase.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng, Bob C <bob.c.feng@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16006 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Source/Python/AutoGen')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 8cd387072e..0b65828459 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -283,15 +283,7 @@ class WorkspaceAutoGen(AutoGen): ExtraData="Build target [%s] is not supported by the platform. [Valid target: %s]"
% (self.BuildTarget, " ".join(self.Platform.BuildTargets)))
- # Validate SKU ID
- if not self.SkuId:
- self.SkuId = 'DEFAULT'
-
- if self.SkuId not in self.Platform.SkuIds:
- EdkLogger.error("build", PARAMETER_INVALID,
- ExtraData="SKU-ID [%s] is not supported by the platform. [Valid SKU-ID: %s]"
- % (self.SkuId, " ".join(self.Platform.SkuIds.keys())))
-
+
# parse FDF file to get PCDs in it, if any
if not self.FdfFile:
self.FdfFile = self.Platform.FlashDefinition
@@ -996,11 +988,6 @@ class PlatformAutoGen(AutoGen): PcdFromModule.IsFromBinaryInf == False:
# Print warning message to let the developer make a determine.
if PcdFromModule not in PcdNotInDb:
- # EdkLogger.warn("build",
- # "A PCD listed in the DSC (%s.%s, %s) is used by a module not in the FDF. If the PCD is not used by any module listed in the FDF this PCD will be ignored. " \
- # % (PcdFromModule.TokenSpaceGuidCName, PcdFromModule.TokenCName, self.Platform.MetaFile.Path),
- # File=self.MetaFile, \
- # ExtraData=None)
PcdNotInDb.append(PcdFromModule)
continue
# If one of the Source built modules listed in the DSC is not listed in
@@ -1105,19 +1092,6 @@ class PlatformAutoGen(AutoGen): % NoDatumTypePcdListString)
self._NonDynamicPcdList = self._NonDynaPcdList_
self._DynamicPcdList = self._DynaPcdList_
- # If PCD is listed in a PcdsDynamicHii, PcdsDynamicExHii, PcdsDynamicHii or PcdsDynamicExHii
- # section, and the PCD is not used by any module that is listed in the DSC file, the build
- # provide a warning message.
- #for PcdKey in self.Platform.Pcds.keys():
- # Pcd = self.Platform.Pcds[PcdKey]
- # if Pcd not in self._DynamicPcdList + PcdNotInDb and \
- # Pcd.Type in [TAB_PCDS_DYNAMIC, TAB_PCDS_DYNAMIC_DEFAULT, TAB_PCDS_DYNAMIC_HII, TAB_PCDS_DYNAMIC_EX, TAB_PCDS_DYNAMIC_EX_DEFAULT, TAB_PCDS_DYNAMIC_EX_HII]:
- # # Print warning message to let the developer make a determine.
- #EdkLogger.warn("build",
- # "A %s PCD listed in the DSC (%s.%s, %s) is not used by any module." \
- # % (Pcd.Type, Pcd.TokenSpaceGuidCName, Pcd.TokenCName, self.Platform.MetaFile.Path),
- # File=self.MetaFile, \
- # ExtraData=None)
#
# Sort dynamic PCD list to:
# 1) If PCD's datum type is VOID* and value is unicode string which starts with L, the PCD item should
|