Fixed build issue with fds target specified.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com> 
Reviewed-by: Hesheng Chen <hesheng.chen@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16619 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Yingke Liu 2015-01-19 05:01:39 +00:00 committed by yingke
parent 4e4a6f3d23
commit b0e23cf32b
1 changed files with 17 additions and 22 deletions

View File

@ -2,7 +2,7 @@
# build a platform or a module # build a platform or a module
# #
# Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR> # Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
# #
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -932,11 +932,6 @@ class Build():
makefile = GenMake.BuildFile(AutoGenObject)._FILE_NAME_[GenMake.gMakeType] makefile = GenMake.BuildFile(AutoGenObject)._FILE_NAME_[GenMake.gMakeType]
# genfds
if Target == 'fds':
LaunchCommand(AutoGenObject.GenFdsCommand, AutoGenObject.MakeFileDir)
return True
# run # run
if Target == 'run': if Target == 'run':
RunDir = os.path.normpath(os.path.join(AutoGenObject.BuildDir, GlobalData.gGlobalDefines['ARCH'])) RunDir = os.path.normpath(os.path.join(AutoGenObject.BuildDir, GlobalData.gGlobalDefines['ARCH']))
@ -1055,6 +1050,14 @@ class Build():
(AutoGenObject.BuildTarget, AutoGenObject.ToolChain, AutoGenObject.Arch), (AutoGenObject.BuildTarget, AutoGenObject.ToolChain, AutoGenObject.Arch),
ExtraData=str(AutoGenObject)) ExtraData=str(AutoGenObject))
# build modules
if BuildModule:
if Target != 'fds':
BuildCommand = BuildCommand + [Target]
LaunchCommand(BuildCommand, AutoGenObject.MakeFileDir)
self.CreateAsBuiltInf()
return True
# genfds # genfds
if Target == 'fds': if Target == 'fds':
LaunchCommand(AutoGenObject.GenFdsCommand, AutoGenObject.MakeFileDir) LaunchCommand(AutoGenObject.GenFdsCommand, AutoGenObject.MakeFileDir)
@ -1068,13 +1071,6 @@ class Build():
LaunchCommand(Command, RunDir) LaunchCommand(Command, RunDir)
return True return True
# build modules
BuildCommand = BuildCommand + [Target]
if BuildModule:
LaunchCommand(BuildCommand, AutoGenObject.MakeFileDir)
self.CreateAsBuiltInf()
return True
# build library # build library
if Target == 'libraries': if Target == 'libraries':
pass pass
@ -1454,12 +1450,11 @@ class Build():
# Rebase module to the preferred memory address before GenFds # Rebase module to the preferred memory address before GenFds
# #
self._CollectModuleMapBuffer(MapBuffer, ModuleList) self._CollectModuleMapBuffer(MapBuffer, ModuleList)
if self.Fdf:
#
# create FDS again for the updated EFI image
#
self._Build("fds", Wa)
if self.Fdf: if self.Fdf:
#
# create FDS again for the updated EFI image
#
self._Build("fds", Wa)
# #
# Create MAP file for all platform FVs after GenFds. # Create MAP file for all platform FVs after GenFds.
# #
@ -1549,10 +1544,10 @@ class Build():
# Rebase module to the preferred memory address before GenFds # Rebase module to the preferred memory address before GenFds
# #
self._CollectModuleMapBuffer(MapBuffer, ModuleList) self._CollectModuleMapBuffer(MapBuffer, ModuleList)
# #
# create FDS again for the updated EFI image # create FDS again for the updated EFI image
# #
self._Build("fds", Wa) self._Build("fds", Wa)
# #
# Create MAP file for all platform FVs after GenFds. # Create MAP file for all platform FVs after GenFds.
# #