Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work #35

Merged
merged 2 commits into from
Oct 19, 2022
Merged

Work #35

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ The installer can be built in two ways, using [oVirt CI mock runner tool](https:

Before buidling the installer you must have the virtio-win drivers localy on the format which they are distributed on the iso:
```
|-Balloon['2k12', '2k12R2', '2k16', '2k19', '2k3', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1', 'xp']
|-NetKVM['2k12', '2k12R2', '2k16', '2k19', '2k3', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1', 'xp']
|-pvpanic['2k12', '2k12R2', '2k16', '2k19', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1']
|-qemufwcfg['2k16', '2k19', 'w10']
|-qemupciserial['2k12', '2k12R2', '2k16', '2k19', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1']
|-vioinput['2k12', '2k12R2', '2k16', '2k19', '2k8R2', 'w10', 'w7', 'w8', 'w8.1']
|-viorng['2k12', '2k12R2', '2k16', '2k19', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1']
|-vioscsi['2k12', '2k12R2', '2k16', '2k19', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1']
|-vioserial['2k12', '2k12R2', '2k16', '2k19', '2k3', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1', 'xp']
|-viostor['2k12', '2k12R2', '2k16', '2k19', '2k3', '2k8', '2k8R2', 'w10', 'w7', 'w8', 'w8.1', 'xp']
|-viofs['2k12', '2k12R2', '2k16', '2k19', 'w10', 'w8', 'w8.1']
|-viogpu['2k12', '2k12R2', '2k16', '2k19', 'w10', 'w8', 'w8.1']
|-Balloon['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k3', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1', 'xp']
|-NetKVM['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k3', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1', 'xp']
|-pvpanic['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1']
|-fwcfg['2k12', '2k12R2', '2k16', '2k19', '2k22', 'w10', 'w11', 'w8', 'w8.1']
|-qemupciserial['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1']
|-vioinput['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1']
|-viorng['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1']
|-vioscsi['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1']
|-vioserial['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k3', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1', 'xp']
|-viostor['2k12', '2k12R2', '2k16', '2k19', '2k22', '2k3', '2k8', '2k8R2', 'w10', 'w11', 'w7', 'w8', 'w8.1', 'xp']
|-viofs['2k12', '2k12R2', '2k16', '2k19', '2k22', 'w10', 'w11', 'w8', 'w8.1']
|-viogpu['2k12', '2k12R2', '2k16', '2k19', '2k22', 'w10', 'w11', 'w8', 'w8.1']
```
You can get it by:

Expand Down
21 changes: 15 additions & 6 deletions test/msi_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ def get_expected_componentids():
'CMP_Win11x64_netkvm':['{B931E603-768A-4FCE-A505-3E1435EBA378}'],
'CMP_netkvm_netkvmco_w11_amd64':['{21928595-F2F6-4669-94C3-2E33BABC247D}'],
'CMP_netkvm_readme_w11_amd64':['{20298575-7E69-47A6-82C9-7A9DEB802DB5}'],
'CMP_WinServer2016_qemufwcfg':['{FD7F28EB-5DD0-4BC8-9C3B-317DB59F6FD5}'],
'CMP_WinServer2019_qemufwcfg':['{DEEF577E-EA8D-4E8E-9D91-44DA8AB8EA63}'],
'CMP_WinServer2022_qemufwcfg':['{AC5A2658-391B-4547-88E5-DA33CCC1F2B5}'],
'CMP_Win10x64_qemufwcfg':['{863DCB46-9E99-4516-9C8C-FD0613255181}'],
'CMP_Win11x64_qemufwcfg':['{43C4B260-4E3B-4AC9-8441-F9A2E693EE1E}'],
'CMP_WinServer2012_viorng':['{93C2AE75-81D3-437C-A445-9FFF42D1F340}'],
'CMP_viorng_viorngum_2k12_amd64':['{56C0396B-DDD1-46BB-AEEE-83DD436BE882}'],
'CMP_viorng_viorngci_2k12_amd64':['{3573D8FB-E339-41A6-A964-D121F5990814}'],
Expand Down Expand Up @@ -156,6 +151,17 @@ def get_expected_componentids():
'CMP_vioinput_viohidkmdf_2k22_amd64':['{D80F19F5-B422-4177-A9B9-6233C3A5EEDB}'],
'CMP_Win11x64_vioinput':['{FDFC0048-91E6-4179-B235-0941C7EAEAA4}'],
'CMP_vioinput_viohidkmdf_w11_amd64':['{283CA7B0-1797-410D-8B42-5255267C5DB0}'],
'CMP_WinServer2012_fwcfg':['{11691408-18A5-43E1-AA4E-2E0217A76993}'],
'CMP_fwcfg_WdfCoInstaller01011_2k12_amd64':['{0562B734-7F4A-431A-A4CC-CE3211345C46}'],
'CMP_WinServer2012R2_fwcfg':['{935496ED-7356-47C7-895F-7656D9B31F94}'],
'CMP_WinServer2016_fwcfg':['{7D32ABFB-E9A0-42D9-89F5-72E11B088989}'],
'CMP_WinServer2019_fwcfg':['{B1C91741-7C0E-4041-A651-E6887B197A15}'],
'CMP_WinServer2022_fwcfg':['{F20E93BC-E083-4E56-9AFD-4147369880AD}'],
'CMP_Win8x64_fwcfg':['{04B0AB4E-2415-41CB-A025-074F1E4537CD}'],
'CMP_fwcfg_WdfCoInstaller01011_w8_amd64':['{B50E490D-F987-439F-9035-54111ED73576}'],
'CMP_Win81x64_fwcfg':['{979D702D-82B2-42C3-BF5D-4E1DA7404D2F}'],
'CMP_Win10x64_fwcfg':['{73F380D6-BA74-44D3-82A3-40679FA73522}'],
'CMP_Win11x64_fwcfg':['{7CD5A9FE-D145-4F82-BD09-EB4599C8558B}'],
}

expected_values_x86 = {
Expand All @@ -176,7 +182,6 @@ def get_expected_componentids():
'CMP_Win10x86_netkvm':['{51E576FD-C649-4D6C-B30D-8FD5807318C1}'],
'CMP_netkvm_netkvmco_w10_x86':['{06224827-B12C-451D-A0E7-1023747302E9}'],
'CMP_netkvm_readme_w10_x86':['{D9A889B2-6D9A-45FF-AC88-7E0FFA4C44FA}'],
'CMP_Win10x86_qemufwcfg':['{DE108D2F-19E0-4F69-A67A-240D000D7DFC}'],
'CMP_Win8x86_viorng':['{99B5101C-9EDD-40FF-9528-9B2C630FCECA}'],
'CMP_viorng_viorngum_w8_x86':['{D13FBFD8-D38C-467F-9939-BF5D2E75382D}'],
'CMP_viorng_viorngci_w8_x86':['{8206EDBC-38DA-4E33-875D-3C61B8FABE68}'],
Expand Down Expand Up @@ -209,6 +214,10 @@ def get_expected_componentids():
# 'CMP_Win8x86_viogpudo':['{B7583BDC-6079-45F5-8F75-D990547AC7C7}'],
# 'CMP_Win81x86_viogpudo':['{1D3226C6-6446-4E81-8162-0B1E33823F99}'],
'CMP_Win10x86_viogpudo':['{D5AB2386-95A5-4ECD-A0CF-8F0DF40ABDD3}'],
'CMP_Win8x86_fwcfg':['{C2EC93F7-F85A-498B-AF47-83556C006D75}'],
'CMP_fwcfg_WdfCoInstaller01011_w8_x86':['{53EB7169-2583-4F39-92FE-21E3CA57434A}'],
'CMP_Win81x86_fwcfg':['{B66970A5-3AD3-4454-97DE-5E5D88D93FFF}'],
'CMP_Win10x86_fwcfg':['{576398C6-231E-4FE0-8AF6-E62BF5015F70}'],
}
return (
("Component", "ComponentId"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<Include xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'>
<?define WdfCoInstaller01011 = "false" ?>
<?define osFullName = "WinServer2012R2" ?>
<?define osShort = "2k12R2" ?>
<?define ISA = "amd64" ?>
<?define Win64 = "yes" ?>
<?define condition = "$(var.condition_2k12r2)" ?>
<?include ./template.wxi ?>
<?undef WdfCoInstaller01011?>
<?undef osFullName?>
<?undef osShort?>
<?undef ISA?>
<?undef Win64?>
<?undef condition?>
</Include>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<Include xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'>
<?define WdfCoInstaller01011 = "false" ?>
<?define osFullName = "Win81x64" ?>
<?define osShort = "w8.1" ?>
<?define ISA = "amd64" ?>
<?define Win64 = "yes" ?>
<?define condition = "$(var.condition_w81x64)" ?>
<?include ./template.wxi ?>
<?undef WdfCoInstaller01011?>
<?undef osFullName?>
<?undef osShort?>
<?undef ISA?>
<?undef Win64?>
<?undef condition?>
</Include>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<Include xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'>
<?define WdfCoInstaller01011 = "false" ?>
<?define osFullName = "Win81x86" ?>
<?define osShort = "w8.1" ?>
<?define ISA = "x86" ?>
<?define Win64 = "no" ?>
<?define condition = "$(var.condition_w81x86)" ?>
<?include ./template.wxi ?>
<?undef WdfCoInstaller01011?>
<?undef osFullName?>
<?undef osShort?>
<?undef ISA?>
<?undef Win64?>
<?undef condition?>
</Include>
67 changes: 67 additions & 0 deletions virtio-win-drivers-installer/Drivers/fwcfg/fwcfg.wxi
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<Include>
<?define driverName = "fwcfg" ?>
<?define srcDirName = "fwcfg" ?>
<?define destDirName = "FWCFG" ?>
<?define with_sys = "true"?>
<?define extra_components = "true"?>
<?define permanent = "no"?>
<?if $(sys.BUILDARCH) = "x64" ?>
<!-- 2k12 -->
<?define guid = "11691408-18A5-43E1-AA4E-2E0217A76993"?>
<?define fwcfg_WdfCoInstaller_guid = "0562B734-7F4A-431A-A4CC-CE3211345C46"?>
<?include ../GenericWindowsComponets/2k12.wxi ?>
<?undef fwcfg_WdfCoInstaller_guid?>
<?undef guid?>
<!-- 2k12R2 -->
<?define guid = "935496ED-7356-47C7-895F-7656D9B31F94"?>
<?include ../GenericWindowsComponets/2k12R2_ext.wxi ?>
<?undef guid?>
<!-- 2k16 -->
<?define guid = "7D32ABFB-E9A0-42D9-89F5-72E11B088989"?>
<?include ../GenericWindowsComponets/2k16.wxi ?>
<?undef guid?>
<!-- 2k19 -->
<?define guid = "B1C91741-7C0E-4041-A651-E6887B197A15"?>
<?include ../GenericWindowsComponets/2k19.wxi ?>
<?undef guid?>
<!-- 2k22 -->
<?define guid = "F20E93BC-E083-4E56-9AFD-4147369880AD"?>
<?include ../GenericWindowsComponets/2k22.wxi ?>
<?undef guid?>
<!-- w8x64 -->
<?define guid = "04B0AB4E-2415-41CB-A025-074F1E4537CD"?>
<?define fwcfg_WdfCoInstaller_guid = "B50E490D-F987-439F-9035-54111ED73576"?>
<?include ../GenericWindowsComponets/w8x64.wxi ?>
<?undef fwcfg_WdfCoInstaller_guid?>
<?undef guid?>
<!-- w81x64 -->
<?define guid = "979D702D-82B2-42C3-BF5D-4E1DA7404D2F"?>
<?include ../GenericWindowsComponets/w81x64_ext.wxi ?>
<?undef guid?>
<!-- w10x64 -->
<?define guid = "73F380D6-BA74-44D3-82A3-40679FA73522"?>
<?include ../GenericWindowsComponets/w10x64.wxi ?>
<?undef guid?>
<!-- w11x64 -->
<?define guid = "7CD5A9FE-D145-4F82-BD09-EB4599C8558B"?>
<?include ../GenericWindowsComponets/w11x64.wxi ?>
<?undef guid?>
<?else ?>
<!-- w8x86 -->
<?define guid = "C2EC93F7-F85A-498B-AF47-83556C006D75"?>
<?define fwcfg_WdfCoInstaller_guid = "53EB7169-2583-4F39-92FE-21E3CA57434A"?>
<?include ../GenericWindowsComponets/w8x86.wxi ?>
<?undef fwcfg_WdfCoInstaller_guid?>
<?undef guid?>
<!-- w81x86 -->
<?define guid = "B66970A5-3AD3-4454-97DE-5E5D88D93FFF"?>
<?include ../GenericWindowsComponets/w81x86_ext.wxi ?>
<?undef guid?>
<!-- w10x86 -->
<?define guid = "576398C6-231E-4FE0-8AF6-E62BF5015F70"?>
<?include ../GenericWindowsComponets/w10x86.wxi ?>
<?undef guid?>
<?endif ?>
</Include>

Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'>
<?include ../../constants.wxi ?>
<?include ./qemufwcfg.wxi ?>
<?include ./fwcfg.wxi ?>

<Fragment>
<ComponentGroup Id="CMPG_$(var.driverName)_driver" Directory="$(var.destDirName)">
<?if $(sys.BUILDARCH) = "x64" ?>
<ComponentGroupRef Id='CMPG_WinServer2012_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_WinServer2012R2_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_WinServer2016_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_WinServer2019_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_WinServer2022_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_Win8x64_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_Win81x64_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_Win10x64_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_Win11x64_$(var.driverName)' />
<?else ?>
<ComponentGroupRef Id='CMPG_Win8x86_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_Win81x86_$(var.driverName)' />
<ComponentGroupRef Id='CMPG_Win10x86_$(var.driverName)' />
<?endif ?>
</ComponentGroup>
Expand Down
15 changes: 15 additions & 0 deletions virtio-win-drivers-installer/Drivers/fwcfg/fwcfg_extras.wxi
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>

<Include xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'>
<?if $(var.WdfCoInstaller01011) = "true" ?>
<Component Id='CMP_$(var.driverName)_WdfCoInstaller01011_$(var.osShort)_$(var.ISA)'
Guid='$(var.fwcfg_WdfCoInstaller_guid)'
Transitive='yes'
Win64='$(var.Win64)'>
<Condition><![CDATA[$(var.condition)]]></Condition>
<File Id='FILE_$(var.driverName)_WdfCoInstaller01011_$(var.osShort)_$(var.ISA)'
Source='$(var.virtio_path)\$(var.srcDirName)\$(var.osShort)\$(var.ISA)\WdfCoInstaller01011.dll'
KeyPath='yes'/>
</Component>
<?endif?>
</Include>
37 changes: 0 additions & 37 deletions virtio-win-drivers-installer/Drivers/qemufwcfg/qemufwcfg.wxi

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@@INSTALLER_PATH@@\Drivers\Balloon\*.wxs
@@INSTALLER_PATH@@\Drivers\NetKVM\*.wxs
@@INSTALLER_PATH@@\Drivers\pvpanic\*.wxs
@@INSTALLER_PATH@@\Drivers\qemufwcfg\*.wxs
@@INSTALLER_PATH@@\Drivers\fwcfg\*.wxs
@@INSTALLER_PATH@@\Drivers\qemupciserial\*.wxs
@@INSTALLER_PATH@@\Drivers\vioinput\*.wxs
@@INSTALLER_PATH@@\Drivers\viorng\*.wxs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@@INSTALLER_PATH@@\Drivers\Balloon\*.wxs
@@INSTALLER_PATH@@\Drivers\NetKVM\*.wxs
@@INSTALLER_PATH@@\Drivers\pvpanic\*.wxs
@@INSTALLER_PATH@@\Drivers\qemufwcfg\*.wxs
@@INSTALLER_PATH@@\Drivers\fwcfg\*.wxs
@@INSTALLER_PATH@@\Drivers\qemupciserial\*.wxs
@@INSTALLER_PATH@@\Drivers\vioinput\*.wxs
@@INSTALLER_PATH@@\Drivers\viorng\*.wxs
Expand Down
2 changes: 1 addition & 1 deletion virtio-win-drivers-installer/directories.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Directory Id="BALLOON" Name="Balloon"/>
<Directory Id="NETWORK" Name="Network"/>
<Directory Id="PVPANIC" Name="Pvpanic"/>
<Directory Id="QEMUFWCFG" Name="Qemufwcfg"/>
<Directory Id="FWCFG" Name="Fwcfg"/>
<Directory Id="QEMUPCISERIAL" Name="Qemupciserial"/>
<Directory Id="VIOINPUT" Name="Vioinput"/>
<Directory Id="VIORNG" Name="Viorng"/>
Expand Down
6 changes: 3 additions & 3 deletions virtio-win-drivers-installer/features.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
Description='QEMU pvpanic device driver'>
<ComponentGroupRef Id='CMPG_pvpanic_driver' />
</Feature>
<Feature Id='FE_qemufwcfg_driver' Title='Qemufwcfg' Level='1'
Description='QEMU FWCfg device driver'>
<ComponentGroupRef Id='CMPG_qemufwcfg_driver' />
<Feature Id='FE_fwcfg_driver' Title='Fwcfg' Level='1'
Description='FWCfg device driver'>
<ComponentGroupRef Id='CMPG_fwcfg_driver' />
</Feature>
<Feature Id='FE_qemupciserial_driver' Title='Qemupciserial' Level='1'
Description='QEMU PCI serial device driver'>
Expand Down