summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorLin, Derek <derek.lin2@hpe.com>2018-05-09 17:03:24 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-11 09:02:31 +0800
commitc61db18e5d11e4c25e32bfb3f999a88e3207eb5f (patch)
tree3ed1ca6edd9b14b633b25027124b700bf7ba9a69 /BaseTools/Source/Python
parentc731b5450576a8dd0afb1d2dd013203235395a4f (diff)
downloadedk2-c61db18e5d11e4c25e32bfb3f999a88e3207eb5f.tar.gz
edk2-c61db18e5d11e4c25e32bfb3f999a88e3207eb5f.tar.bz2
edk2-c61db18e5d11e4c25e32bfb3f999a88e3207eb5f.zip
BaseTools: Fix python error with --genfds-multi-thread.
When self.Alignment is None, it ran into python error since there is no strip() in None. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Derek Lin <derek.lin2@hpe.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r--BaseTools/Source/Python/GenFds/GuidSection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/GuidSection.py b/BaseTools/Source/Python/GenFds/GuidSection.py
index 1105689e0d..bda185476b 100644
--- a/BaseTools/Source/Python/GenFds/GuidSection.py
+++ b/BaseTools/Source/Python/GenFds/GuidSection.py
@@ -2,6 +2,7 @@
# process GUIDed section generation
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2018, Hewlett Packard Enterprise Development, L.P.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -273,7 +274,7 @@ class GuidSection(GuidSectionClassObject) :
self.Alignment = None
self.IncludeFvSection = False
self.ProcessRequired = "TRUE"
- if IsMakefile and self.Alignment.strip() == '0':
+ if IsMakefile and self.Alignment is not None and self.Alignment.strip() == '0':
self.Alignment = '1'
return OutputFileList, self.Alignment