summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-04-09 09:07:09 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-04-10 10:09:45 +0800
commitb9a6d9d7ca59563b769fbf0218f204913bddf45d (patch)
treeda5075f86e394589b2cad49fb3915ecca1811725 /BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
parent98120f5fe2199de29c0cce8e92c692b23adf0cf7 (diff)
downloadedk2-b9a6d9d7ca59563b769fbf0218f204913bddf45d.tar.gz
edk2-b9a6d9d7ca59563b769fbf0218f204913bddf45d.tar.bz2
edk2-b9a6d9d7ca59563b769fbf0218f204913bddf45d.zip
BaseTools: Parse PCD GUID name in FILE statement issue
FDF format as below: FILE APPLICATION = PCD(PcdToken.PcdCName) { } when parse PCD, need get all PCDs from Platform and Packages, use self.BuildObject[self.Platform, Arch] get some modules is wrong. so use self.BuildObject[self.Platform, Arch, TargetName, ToolChainTag] get all modules. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/WorkspaceDatabase.py')
-rw-r--r--BaseTools/Source/Python/Workspace/WorkspaceDatabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
index 2b888c0610..e554d84326 100644
--- a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
+++ b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
@@ -1,7 +1,7 @@
## @file
# This file is used to create a database used by build tool
#
-# Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -280,7 +280,7 @@ determine whether database file is out of date!\n")
def GetPackageList(self, Platform, Arch, TargetName, ToolChainTag):
self.Platform = Platform
PackageList = []
- Pa = self.BuildObject[self.Platform, Arch]
+ Pa = self.BuildObject[self.Platform, Arch, TargetName, ToolChainTag]
#
# Get Package related to Modules
#