mirror of https://github.com/acidanthera/audk.git
BaseTools: Allow multiple PciDeviceId in Fdf OptionROM override
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Tomas Pilar <tpilar@solarflare.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
b28d406b5a
commit
f157f97301
|
@ -4394,10 +4394,12 @@ class FdfParser:
|
||||||
if self._IsKeyword("PCI_DEVICE_ID"):
|
if self._IsKeyword("PCI_DEVICE_ID"):
|
||||||
if not self._IsToken(TAB_EQUAL_SPLIT):
|
if not self._IsToken(TAB_EQUAL_SPLIT):
|
||||||
raise Warning.ExpectedEquals(self.FileName, self.CurrentLineNumber)
|
raise Warning.ExpectedEquals(self.FileName, self.CurrentLineNumber)
|
||||||
if not self._GetNextHexNumber():
|
# Get a list of PCI IDs
|
||||||
raise Warning.Expected("Hex device id", self.FileName, self.CurrentLineNumber)
|
Overrides.PciDeviceId = ""
|
||||||
|
while (self.__GetNextHexNumber()):
|
||||||
Overrides.PciDeviceId = self._Token
|
Overrides.PciDeviceId = "{} {}".format(Overrides.PciDeviceId, self.__Token)
|
||||||
|
if not Overrides.PciDeviceId:
|
||||||
|
raise Warning.Expected("one or more Hex device ids", self.FileName, self.CurrentLineNumber)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self._IsKeyword("PCI_REVISION"):
|
if self._IsKeyword("PCI_REVISION"):
|
||||||
|
|
Loading…
Reference in New Issue