mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-31 07:20:55 +00:00
config-tools: Fix Enable SR-IOV build fail
Because SR-IOV is enabled to obtain board xml, the xpath address cannot resolve the @address='0x20000' address. cause the build to fail. fix build issues Tracked-On: #7371 Signed-off-by: zhongzhenx.liu <zhongzhenx.liu@intel.com>
This commit is contained in:
parent
57994b6d34
commit
579e5247fb
@ -119,7 +119,7 @@ def create_igd_sbdf(board_etree, allocation_etree):
|
||||
doesn't exist.
|
||||
"""
|
||||
bus = "0x0"
|
||||
device_node = common.get_node(f"//bus[@type='pci' and @address='{bus}']/device[vendor='0x8086' and class='0x030000']", board_etree)
|
||||
device_node = common.get_node(f"//bus[@type='pci' and @address='{bus}']/device[@address='0x20000' and vendor='0x8086' and class='0x030000']", board_etree)
|
||||
if device_node is None:
|
||||
common.append_node("/acrn-config/hv/MISC_CFG/IGD_SBDF", '0xFFFF', allocation_etree)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user