BaseTool: Filter out unused structure pcds
V2: Fixed the issue that V1 adds new check to the Pcds in the platform unused library INF files. It breaks the existing platform. V1? The current code handle all the structure pcds even if there is no module or library use them. This patch is going to filter out the unused structure pcds. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -106,6 +106,10 @@ class WorkspaceDatabase(object):
|
||||
return self._CACHE_[Key]
|
||||
|
||||
# check file type
|
||||
BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain)
|
||||
self._CACHE_[Key] = BuildObject
|
||||
return BuildObject
|
||||
def CreateBuildObject(self,FilePath, Arch, Target, Toolchain):
|
||||
Ext = FilePath.Type
|
||||
if Ext not in self._FILE_TYPE_:
|
||||
return None
|
||||
@ -131,7 +135,6 @@ class WorkspaceDatabase(object):
|
||||
Target,
|
||||
Toolchain
|
||||
)
|
||||
self._CACHE_[Key] = BuildObject
|
||||
return BuildObject
|
||||
|
||||
# placeholder for file format conversion
|
||||
|
Reference in New Issue
Block a user