summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build/build.py
diff options
context:
space:
mode:
authorBobCF <bob.c.feng@intel.com>2018-03-02 18:11:13 +0800
committerLiming Gao <liming.gao@intel.com>2018-03-03 12:40:39 +0800
commitb854e2bf752940b8d4dd3a569942d9c07b5d498f (patch)
tree98e5372765319bcd830bf5842a517a364f5e07e3 /BaseTools/Source/Python/build/build.py
parent0537f332c968e6c3adeefa2222b5f1aa7252b711 (diff)
downloadedk2-b854e2bf752940b8d4dd3a569942d9c07b5d498f.tar.gz
edk2-b854e2bf752940b8d4dd3a569942d9c07b5d498f.tar.bz2
edk2-b854e2bf752940b8d4dd3a569942d9c07b5d498f.zip
BaseTools: Fixed Pcd value override issue.
1. Handle the Pcd maxsize issue for the case that the length of Pcd value from CommandLine bigger that its maxsize 2. The Pcd value override in commandline. 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>
Diffstat (limited to 'BaseTools/Source/Python/build/build.py')
-rw-r--r--BaseTools/Source/Python/build/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index bb130a02cc..85612d90ce 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -772,7 +772,7 @@ class Build():
self.AutoGenTime = 0
self.MakeTime = 0
self.GenFdsTime = 0
- GlobalData.BuildOptionPcd = BuildOptions.OptionPcd if BuildOptions.OptionPcd else {}
+ GlobalData.BuildOptionPcd = BuildOptions.OptionPcd if BuildOptions.OptionPcd else []
#Set global flag for build mode
GlobalData.gIgnoreSource = BuildOptions.IgnoreSources
GlobalData.gUseHashCache = BuildOptions.UseHashCache