mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
c731b54505
commit
c61db18e5d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue