Sync tool code to BuildTools project r1739.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9397 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -294,10 +294,7 @@ class GenFdsGlobalVariable:
|
||||
@staticmethod
|
||||
def GenerateOptionRom(Output, EfiInput, BinaryInput, Compress=False, ClassCode=None,
|
||||
Revision=None, DeviceId=None, VendorId=None):
|
||||
# if not GenFdsGlobalVariable.NeedsUpdate(Output, Input):
|
||||
# return
|
||||
# GenFdsGlobalVariable.DebugLogger(EdkLogger.DEBUG_5, "%s needs update because of newer %s" % (Output, Input))
|
||||
|
||||
InputList = []
|
||||
Cmd = ["EfiRom"]
|
||||
if len(EfiInput) > 0:
|
||||
|
||||
@ -308,11 +305,18 @@ class GenFdsGlobalVariable:
|
||||
|
||||
for EfiFile in EfiInput:
|
||||
Cmd += [EfiFile]
|
||||
InputList.append (EfiFile)
|
||||
|
||||
if len(BinaryInput) > 0:
|
||||
Cmd += ["-b"]
|
||||
for BinFile in BinaryInput:
|
||||
Cmd += [BinFile]
|
||||
InputList.append (BinFile)
|
||||
|
||||
# Check List
|
||||
if not GenFdsGlobalVariable.NeedsUpdate(Output, InputList):
|
||||
return
|
||||
GenFdsGlobalVariable.DebugLogger(EdkLogger.DEBUG_5, "%s needs update because of newer %s" % (Output, InputList))
|
||||
|
||||
if ClassCode != None:
|
||||
Cmd += ["-l", ClassCode]
|
||||
|
Reference in New Issue
Block a user