BaseTools: report error if source module INF is only list in FDF file
If source module INF is not listed in DSC, it will not be built. And it is listed in FDF, GenFds will fail to find its build output. To reminder user this issue early, build tool should report failure to user in early phase. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -231,6 +231,7 @@ class FileProfile :
|
||||
|
||||
self.PcdDict = {}
|
||||
self.InfList = []
|
||||
self.InfDict = {'ArchTBD':[]}
|
||||
# ECC will use this Dict and List information
|
||||
self.PcdFileLineDict = {}
|
||||
self.InfFileLineList = []
|
||||
@ -2472,6 +2473,13 @@ class FdfParser:
|
||||
self.Profile.InfList.append(ffsInf.InfFileName)
|
||||
FileLineTuple = GetRealFileLine(self.FileName, self.CurrentLineNumber)
|
||||
self.Profile.InfFileLineList.append(FileLineTuple)
|
||||
if ffsInf.UseArch:
|
||||
if ffsInf.UseArch not in self.Profile.InfDict:
|
||||
self.Profile.InfDict[ffsInf.UseArch] = [ffsInf.InfFileName]
|
||||
else:
|
||||
self.Profile.InfDict[ffsInf.UseArch].append(ffsInf.InfFileName)
|
||||
else:
|
||||
self.Profile.InfDict['ArchTBD'].append(ffsInf.InfFileName)
|
||||
|
||||
if self.__IsToken('|'):
|
||||
if self.__IsKeyword('RELOCS_STRIPPED'):
|
||||
@ -4351,6 +4359,13 @@ class FdfParser:
|
||||
self.Profile.InfList.append(ffsInf.InfFileName)
|
||||
FileLineTuple = GetRealFileLine(self.FileName, self.CurrentLineNumber)
|
||||
self.Profile.InfFileLineList.append(FileLineTuple)
|
||||
if ffsInf.UseArch:
|
||||
if ffsInf.UseArch not in self.Profile.InfDict:
|
||||
self.Profile.InfDict[ffsInf.UseArch] = [ffsInf.InfFileName]
|
||||
else:
|
||||
self.Profile.InfDict[ffsInf.UseArch].append(ffsInf.InfFileName)
|
||||
else:
|
||||
self.Profile.InfDict['ArchTBD'].append(ffsInf.InfFileName)
|
||||
|
||||
|
||||
self.__GetOptRomOverrides (ffsInf)
|
||||
|
Reference in New Issue
Block a user