mirror of https://github.com/acidanthera/audk.git
Sync EDKII BaseTools to BaseTools project r2000
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10706 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ad108abec9
commit
6310ffd781
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -3125,7 +3125,7 @@ RELEASE_ICC11x86xASL_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG
|
|||
*_MYTOOLS_IA32_ASLCC_PATH = DEF(VS2008_BIN)\cl.exe
|
||||
*_MYTOOLS_IA32_ASLPP_PATH = DEF(VS2008_BIN)\cl.exe
|
||||
*_MYTOOLS_IA32_ASLDLINK_PATH = DEF(VS2008_BIN)\link.exe
|
||||
*_MYTOOLS_IA32_RC_PATH = DEF(VS2008_BIN)\rc.exe
|
||||
*_MYTOOLS_IA32_RC_PATH = DEF(WINSDK_BIN)\rc.exe
|
||||
|
||||
DEBUG_MYTOOLS_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /Gy /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Zi /Gm
|
||||
RELEASE_MYTOOLS_IA32_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /Gy /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GR- /GF
|
||||
|
@ -3150,7 +3150,7 @@ RELEASE_MYTOOLS_IA32_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /O
|
|||
*_MYTOOLS_X64_ASLCC_PATH = DEF(VS2008_BINX64)\cl.exe
|
||||
*_MYTOOLS_X64_ASLPP_PATH = DEF(VS2008_BINX64)\cl.exe
|
||||
*_MYTOOLS_X64_ASLDLINK_PATH = DEF(VS2008_BINX64)\link.exe
|
||||
*_MYTOOLS_X64_RC_PATH = DEF(VS2008_BIN)\rc.exe
|
||||
*_MYTOOLS_X64_RC_PATH = DEF(WINSDK_BIN)\rc.exe
|
||||
|
||||
DEBUG_MYTOOLS_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /Gy /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GR- /GF /Zi /Gm
|
||||
RELEASE_MYTOOLS_X64_CC_FLAGS = /nologo /c /WX /GS- /W4 /Gs32768 /Gy /D UNICODE /O1ib2 /GL /FIAutoGen.h /EHs-c- /GR- /GF
|
||||
|
|
|
@ -3532,6 +3532,11 @@ class FdfParser:
|
|||
raise Warning("expected Reset file", self.FileName, self.CurrentLineNumber)
|
||||
|
||||
VtfObj.ResetBin = self.__Token
|
||||
if VtfObj.ResetBin.replace('$(WORKSPACE)', '').find('$') == -1:
|
||||
#check for file path
|
||||
ErrorCode, ErrorInfo = PathClass(NormPath(VtfObj.ResetBin), GenFdsGlobalVariable.WorkSpaceDir).Validate()
|
||||
if ErrorCode != 0:
|
||||
EdkLogger.error("GenFds", ErrorCode, ExtraData=ErrorInfo)
|
||||
|
||||
while self.__GetComponentStatement(VtfObj):
|
||||
pass
|
||||
|
@ -3634,6 +3639,11 @@ class FdfParser:
|
|||
raise Warning("expected Component file", self.FileName, self.CurrentLineNumber)
|
||||
|
||||
CompStatementObj.CompBin = self.__Token
|
||||
if CompStatementObj.CompBin != '-' and CompStatementObj.CompBin.replace('$(WORKSPACE)', '').find('$') == -1:
|
||||
#check for file path
|
||||
ErrorCode, ErrorInfo = PathClass(NormPath(CompStatementObj.CompBin), GenFdsGlobalVariable.WorkSpaceDir).Validate()
|
||||
if ErrorCode != 0:
|
||||
EdkLogger.error("GenFds", ErrorCode, ExtraData=ErrorInfo)
|
||||
|
||||
if not self.__IsKeyword("COMP_SYM"):
|
||||
raise Warning("expected COMP_SYM", self.FileName, self.CurrentLineNumber)
|
||||
|
@ -3645,6 +3655,11 @@ class FdfParser:
|
|||
raise Warning("expected Component symbol file", self.FileName, self.CurrentLineNumber)
|
||||
|
||||
CompStatementObj.CompSym = self.__Token
|
||||
if CompStatementObj.CompSym != '-' and CompStatementObj.CompSym.replace('$(WORKSPACE)', '').find('$') == -1:
|
||||
#check for file path
|
||||
ErrorCode, ErrorInfo = PathClass(NormPath(CompStatementObj.CompSym), GenFdsGlobalVariable.WorkSpaceDir).Validate()
|
||||
if ErrorCode != 0:
|
||||
EdkLogger.error("GenFds", ErrorCode, ExtraData=ErrorInfo)
|
||||
|
||||
if not self.__IsKeyword("COMP_SIZE"):
|
||||
raise Warning("expected COMP_SIZE", self.FileName, self.CurrentLineNumber)
|
||||
|
@ -3722,6 +3737,11 @@ class FdfParser:
|
|||
if not self.__GetNextToken():
|
||||
raise Warning("expected INF file path", self.FileName, self.CurrentLineNumber)
|
||||
ffsInf.InfFileName = self.__Token
|
||||
if ffsInf.InfFileName.replace('$(WORKSPACE)', '').find('$') == -1:
|
||||
#check for file path
|
||||
ErrorCode, ErrorInfo = PathClass(NormPath(ffsInf.InfFileName), GenFdsGlobalVariable.WorkSpaceDir).Validate()
|
||||
if ErrorCode != 0:
|
||||
EdkLogger.error("GenFds", ErrorCode, ExtraData=ErrorInfo)
|
||||
|
||||
if not ffsInf.InfFileName in self.Profile.InfList:
|
||||
self.Profile.InfList.append(ffsInf.InfFileName)
|
||||
|
@ -3814,6 +3834,11 @@ class FdfParser:
|
|||
if not self.__GetNextToken():
|
||||
raise Warning("expected File path", self.FileName, self.CurrentLineNumber)
|
||||
FfsFileObj.FileName = self.__Token
|
||||
if FfsFileObj.FileName.replace('$(WORKSPACE)', '').find('$') == -1:
|
||||
#check for file path
|
||||
ErrorCode, ErrorInfo = PathClass(NormPath(FfsFileObj.FileName), GenFdsGlobalVariable.WorkSpaceDir).Validate()
|
||||
if ErrorCode != 0:
|
||||
EdkLogger.error("GenFds", ErrorCode, ExtraData=ErrorInfo)
|
||||
|
||||
if FfsFileObj.FileType == 'EFI':
|
||||
self.__GetOptRomOverrides(FfsFileObj)
|
||||
|
|
|
@ -67,6 +67,14 @@ class Vtf (VtfClassObject):
|
|||
FvList = self.GetFvList()
|
||||
self.BsfInfName = os.path.join(GenFdsGlobalVariable.FvDir, self.UiName + '.inf')
|
||||
BsfInf = open (self.BsfInfName, 'w+')
|
||||
if self.ResetBin != None:
|
||||
BsfInf.writelines ("[OPTIONS]" + T_CHAR_LF)
|
||||
BsfInf.writelines ("IA32_RST_BIN" + \
|
||||
" = " + \
|
||||
GenFdsGlobalVariable.MacroExtend(GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.ResetBin)) + \
|
||||
T_CHAR_LF )
|
||||
BsfInf.writelines (T_CHAR_LF )
|
||||
|
||||
BsfInf.writelines ("[COMPONENTS]" + T_CHAR_LF)
|
||||
|
||||
for ComponentObj in self.ComponentStatementList :
|
||||
|
|
Loading…
Reference in New Issue