]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools:Replace PlatformInfo with PlatformAutoGen for Moudle
authorFan, ZhijuX <zhijux.fan@intel.com>
Thu, 12 Sep 2019 08:18:58 +0000 (16:18 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 17 Sep 2019 02:18:51 +0000 (10:18 +0800)
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2188

build -p MdeModulePkg\MdeModulePkg.dsc -a IA32 -m
MdeModulePkg\Universal\PCD\Pei\Pcd.inf

Error:
AttributeError: 'PlatformInfo' object has no attribute
'DynamicPcdList'

The DSC data object used to build a separate module today
is PlatformInfo rather than PlatformAutoGen
'PlatformAutoGen' object has attribute 'DynamicPcdList'

This patch is going to fixed this issue

Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/build/build.py

index 8df53e7c797be40379dac7da616adda60db85e2d..bcd832c525f1965292865d3ed2877fc870769316 100755 (executable)
@@ -1860,6 +1860,9 @@ class Build():
                             Ma = ModuleAutoGen(Wa, Module, BuildTarget, ToolChain, Arch, self.PlatformFile,Pa.DataPipe)\r
                             if Ma is None:\r
                                 continue\r
+                            if Ma.PcdIsDriver:\r
+                                Ma.PlatformInfo = Pa\r
+                                Ma.Workspace = Wa\r
                             MaList.append(Ma)\r
 \r
                             if GlobalData.gBinCacheSource and self.Target in [None, "", "all"]:\r