Skip to content

Commit

Permalink
windows, installer: Bundle Windows 10 driver
Browse files Browse the repository at this point in the history
This patch bundles the Windows 10 driver family in the installer and also
adds detection for the family.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Acked-by: Ilya Maximets <[email protected]>
  • Loading branch information
aserdean authored and Alin Gabriel Serdean committed Oct 4, 2020
1 parent 8596b13 commit bc357f0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion windows/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ windows_installer: all
#Forwarding extension files needed for the installer
cp -f $(top_srcdir)/datapath-windows/x64/Win8$(VSTUDIO_CONFIG)/package/ovsext.cat windows/ovs-windows-installer/Driver/Win8/ovsext.cat
cp -f $(top_srcdir)/datapath-windows/x64/Win8$(VSTUDIO_CONFIG)/package/ovsext.inf windows/ovs-windows-installer/Driver/Win8/ovsext.inf
cp -f $(top_srcdir)/datapath-windows/x64/Win8$(VSTUDIO_CONFIG)/package/OVSExt.sys windows/ovs-windows-installer/Driver/Win8/OVSExt.sys
cp -f $(top_srcdir)/datapath-windows/x64/Win8$(VSTUDIO_CONFIG)/package/OVSExt.sys windows/ovs-windows-installer/Driver/Win8/ovsext.sys
cp -f $(top_srcdir)/datapath-windows/x64/Win8.1$(VSTUDIO_CONFIG)/package/ovsext.cat windows/ovs-windows-installer/Driver/Win8.1/ovsext.cat
cp -f $(top_srcdir)/datapath-windows/x64/Win8.1$(VSTUDIO_CONFIG)/package/ovsext.inf windows/ovs-windows-installer/Driver/Win8.1/ovsext.inf
cp -f $(top_srcdir)/datapath-windows/x64/Win8.1$(VSTUDIO_CONFIG)/package/ovsext.sys windows/ovs-windows-installer/Driver/Win8.1/ovsext.sys
cp -f $(top_srcdir)/datapath-windows/x64/Win10$(VSTUDIO_CONFIG)/package/ovsext.cat windows/ovs-windows-installer/Driver/Win10/ovsext.cat
cp -f $(top_srcdir)/datapath-windows/x64/Win10$(VSTUDIO_CONFIG)/package/ovsext.inf windows/ovs-windows-installer/Driver/Win10/ovsext.inf
cp -f $(top_srcdir)/datapath-windows/x64/Win10$(VSTUDIO_CONFIG)/package/ovsext.sys windows/ovs-windows-installer/Driver/Win10/ovsext.sys
MSBuild.exe windows/ovs-windows-installer.sln //nologo //target:Build //p:Configuration="Release" //p:Version="$(PACKAGE_VERSION)" //p:Platform=$(PLATFORM)

EXTRA_DIST += \
Expand Down
1 change: 1 addition & 0 deletions windows/ovs-windows-installer/Driver/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
!.gitignore
!Win8
!Win8.1
!Win10
3 changes: 3 additions & 0 deletions windows/ovs-windows-installer/Driver/Win10/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*

!.gitignore
12 changes: 11 additions & 1 deletion windows/ovs-windows-installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<Property Id="DriverID" Value="{583CC151-73EC-4A6A-8B47-578297AD7623}" />
<Property Id="DriverVersion" Value="$(var.Version)" />
<Property Id="ExtensionType" Value="Forwarding" />
<Property Id="BUILDNUMBER" Secure="yes">
<RegistrySearch Id="Test" Root="HKLM" Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" Name="CurrentBuild" Type="raw" />
</Property>

<Condition Message="This application is only supported on Windows 2012 or higher.">
<![CDATA[Installed OR (VersionNT >= 602)]]>
Expand Down Expand Up @@ -65,6 +68,7 @@
Description="Installs the Open vSwitch Hyper-V switch extension driver." Display="expand">
<ComponentRef Id="OpenvSwitchDriver_Win8" />
<ComponentRef Id="OpenvSwitchDriver_Win8.1" />
<ComponentRef Id="OpenvSwitchDriver_Win10" />
<ComponentRef Id="ConfDir" />
<ComponentRef Id="LogsDir" />
<ComponentRef Id="AppDataDir" />
Expand Down Expand Up @@ -254,11 +258,17 @@
<File Id='win8_ovsext.cat' Name='ovsext.cat' DiskId='1' Source='Driver\Win8\ovsext.cat' Checksum='yes' />
</Component>
<Component Id='OpenvSwitchDriver_Win8.1' Guid='{7A1E2446-8196-4738-8362-5CFD55896A7C}'>
<Condition><![CDATA[VersionNT = "603"]]></Condition>
<Condition><![CDATA[(VersionNT = "603") AND (BUILDNUMBER < 10000)]]></Condition>
<File Id='win81_ovsext.sys' Name='ovsext.sys' DiskId='1' Source='Driver\Win8.1\ovsext.sys' Checksum='yes' KeyPath='yes'/>
<File Id='win81_ovsext.inf' Name='ovsext.inf' DiskId='1' Source='Driver\Win8.1\ovsext.inf' Checksum='yes' />
<File Id='win81_ovsext.cat' Name='ovsext.cat' DiskId='1' Source='Driver\Win8.1\ovsext.cat' Checksum='yes' />
</Component>
<Component Id='OpenvSwitchDriver_Win10' Guid='{7A1E2446-8196-4738-8362-5CFD55896A7D}'>
<Condition><![CDATA[BUILDNUMBER > 10000]]></Condition>
<File Id='win10_ovsext.sys' Name='ovsext.sys' DiskId='1' Source='Driver\Win10\ovsext.sys' Checksum='yes' KeyPath='yes'/>
<File Id='win10_ovsext.inf' Name='ovsext.inf' DiskId='1' Source='Driver\Win10\ovsext.inf' Checksum='yes' />
<File Id='win10_ovsext.cat' Name='ovsext.cat' DiskId='1' Source='Driver\Win10\ovsext.cat' Checksum='yes' />
</Component>
</DirectoryRef>
</Fragment>

Expand Down

0 comments on commit bc357f0

Please sign in to comment.