mirror of https://github.com/acidanthera/audk.git
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:
parent
4e4a6f3d23
commit
b0e23cf32b
|
@ -2,7 +2,7 @@
|
|||
# build a platform or a module
|
||||
#
|
||||
# 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
|
||||
# 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]
|
||||
|
||||
# genfds
|
||||
if Target == 'fds':
|
||||
LaunchCommand(AutoGenObject.GenFdsCommand, AutoGenObject.MakeFileDir)
|
||||
return True
|
||||
|
||||
# run
|
||||
if Target == 'run':
|
||||
RunDir = os.path.normpath(os.path.join(AutoGenObject.BuildDir, GlobalData.gGlobalDefines['ARCH']))
|
||||
|
@ -1055,6 +1050,14 @@ class Build():
|
|||
(AutoGenObject.BuildTarget, AutoGenObject.ToolChain, AutoGenObject.Arch),
|
||||
ExtraData=str(AutoGenObject))
|
||||
|
||||
# build modules
|
||||
if BuildModule:
|
||||
if Target != 'fds':
|
||||
BuildCommand = BuildCommand + [Target]
|
||||
LaunchCommand(BuildCommand, AutoGenObject.MakeFileDir)
|
||||
self.CreateAsBuiltInf()
|
||||
return True
|
||||
|
||||
# genfds
|
||||
if Target == 'fds':
|
||||
LaunchCommand(AutoGenObject.GenFdsCommand, AutoGenObject.MakeFileDir)
|
||||
|
@ -1068,13 +1071,6 @@ class Build():
|
|||
LaunchCommand(Command, RunDir)
|
||||
return True
|
||||
|
||||
# build modules
|
||||
BuildCommand = BuildCommand + [Target]
|
||||
if BuildModule:
|
||||
LaunchCommand(BuildCommand, AutoGenObject.MakeFileDir)
|
||||
self.CreateAsBuiltInf()
|
||||
return True
|
||||
|
||||
# build library
|
||||
if Target == 'libraries':
|
||||
pass
|
||||
|
@ -1459,7 +1455,6 @@ class Build():
|
|||
# create FDS again for the updated EFI image
|
||||
#
|
||||
self._Build("fds", Wa)
|
||||
if self.Fdf:
|
||||
#
|
||||
# Create MAP file for all platform FVs after GenFds.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue