diff options
author | Fan, ZhijuX <zhijux.fan@intel.com> | 2019-11-14 09:27:42 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2019-11-20 07:46:42 +0000 |
commit | bf1ea933ec1c6447c4168c34cc1b7ea4ac8f3e4d (patch) | |
tree | dfc12809cf1f7a8b67e4a52bf99dba38c89a1984 /BaseTools/Source/Python/Workspace/WorkspaceDatabase.py | |
parent | 7607174192166dd5d2d6913fc2fdb8ce539cd3c9 (diff) | |
download | edk2-bf1ea933ec1c6447c4168c34cc1b7ea4ac8f3e4d.tar.gz edk2-bf1ea933ec1c6447c4168c34cc1b7ea4ac8f3e4d.tar.bz2 edk2-bf1ea933ec1c6447c4168c34cc1b7ea4ac8f3e4d.zip |
BaseTools:Add [packages] section in dsc file
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2270
Currently a PCD (e.g. FeaturePCD) cannot be used in a conditional
statement in a DSC/FDF file without a module in the build referencing
the PCD package DEC file.
An example implementation that to support this is to allow a [Packages]
section in the DSC file to list additional package dependencies for PCD
references in the package DSC/FDF files.
this patch is going to add the ability to have the [packages] section
defined in the DSC file
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Acked-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/WorkspaceDatabase.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/WorkspaceDatabase.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py index ab7b4506c1..9420eaa608 100644 --- a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py +++ b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py @@ -186,6 +186,10 @@ class WorkspaceDatabase(object): for Package in LibObj.Packages:
if Package not in PackageList:
PackageList.append(Package)
+ for Package in Pa.Packages:
+ if Package in PackageList:
+ continue
+ PackageList.append(Package)
return PackageList
|