[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix compile on EWDK 22000


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Tue, 3 Aug 2021 15:38:48 +0100
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Tue, 03 Aug 2021 14:38:59 +0000
  • Ironport-hdrordr: A9a23:oJUB1a2CIsIL2ezD2tsfLAqjBL4kLtp133Aq2lEZdPRUGvb3qy nIpoV+6faUskd2ZJhOo7C90cW7LU80lqQFhLX5X43SPzUO0VHAROoJgLcKqweQfBEWndQ96U 4PScdD4aXLfDpHsfo=
  • Ironport-sdr: bsj+AWuMcSd/HNXdiJAyyyDc0DKoidnYuMXuGWXtAqtg2mQTsmWvVV9m0bdYmMU5LF9TzDO+Fg DRV3HwOZ320a80DJvG6RKlt2dWNwkeX8Byfrz3f9A+p8HOzeCfhg1aR3mUfRp2uq+3skAOGuzo jsa476XEvH889p0+H8YAOx0+f2zFhOe8tjHFWJfNF4XIoL5DPnRnTixAwhedSx2q1O6SF1ZSDG aAGYSnwCWO5yWc6FLRFX6j6IeeCtwV6zsT+AV1IGFpPlF3BepmEzCaHWrYc2GLffxzq8Hz2hzy sjiO6bQdDakK3YnJzI8GhjLk
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

- Adds warnings 4061 and 4062 to ignore list
- Defines signtool file digest as SHA256
- Adds alias for GetProjectInfoForReference target
  It appears that VS2019/EWDK22000 changed a target name, and without the alias
  the build will fail.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 vs2019/package/package.vcxproj             | 5 +++++
 vs2019/version/version.vcxproj             | 6 ++++++
 vs2019/xennet/xennet.vcxproj               | 7 ++++++-
 vs2019/xennet_coinst/xennet_coinst.vcxproj | 5 +++++
 4 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/vs2019/package/package.vcxproj b/vs2019/package/package.vcxproj
index dd794b5..e4c6f0f 100644
--- a/vs2019/package/package.vcxproj
+++ b/vs2019/package/package.vcxproj
@@ -56,6 +56,11 @@
   <ItemGroup>
     <PackageFiles Include="$(OutDir)\$(ProjectName)\*" />
   </ItemGroup>
+  <ItemDefinitionGroup>
+    <DriverSign>
+      <FileDigestAlgorithm>sha256</FileDigestAlgorithm>
+    </DriverSign>
+  </ItemDefinitionGroup>
   <Target Name="Archive" AfterTargets="TestSign">
     <Copy
        SourceFiles="@(PackageFiles)"
diff --git a/vs2019/version/version.vcxproj b/vs2019/version/version.vcxproj
index 9d149d0..b6ec6f3 100644
--- a/vs2019/version/version.vcxproj
+++ b/vs2019/version/version.vcxproj
@@ -13,4 +13,10 @@
   <Target Name="Build">
     <Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile 
-NonInteractive -File $(Script) $(Platform) $(SolutionDir) $(IncludeDir) 
$(SourceDir)" />
   </Target>
+  <Target Name="GetProjectInfoForReference"
+          Returns="@(ProjectInfoForReference)">
+    <ItemGroup>
+      <ProjectInfoForReference Include="@(LibFullPath)" />
+    </ItemGroup>
+  </Target>
 </Project>
diff --git a/vs2019/xennet/xennet.vcxproj b/vs2019/xennet/xennet.vcxproj
index 027dc4a..beb5bb3 100644
--- a/vs2019/xennet/xennet.vcxproj
+++ b/vs2019/xennet/xennet.vcxproj
@@ -26,7 +26,7 @@
       <IntrinsicFunctions>true</IntrinsicFunctions>
       
<AdditionalIncludeDirectories>$(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;</AdditionalIncludeDirectories>
       <WarningLevel>EnableAllWarnings</WarningLevel>
-      
<DisableSpecificWarnings>4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28160;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+      
<DisableSpecificWarnings>4061;4062;4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28160;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
       <MultiProcessorCompilation>true</MultiProcessorCompilation>
       <EnablePREfast>true</EnablePREfast>
     </ClCompile>
@@ -71,5 +71,10 @@
   <ItemGroup>
     <ResourceCompile Include="..\..\src\xennet\xennet.rc" />
   </ItemGroup>
+  <ItemDefinitionGroup>
+    <DriverSign>
+      <FileDigestAlgorithm>sha256</FileDigestAlgorithm>
+    </DriverSign>
+  </ItemDefinitionGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
diff --git a/vs2019/xennet_coinst/xennet_coinst.vcxproj 
b/vs2019/xennet_coinst/xennet_coinst.vcxproj
index a159abd..45ca05a 100644
--- a/vs2019/xennet_coinst/xennet_coinst.vcxproj
+++ b/vs2019/xennet_coinst/xennet_coinst.vcxproj
@@ -53,5 +53,10 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xennet_coinst.def" />
   </ItemGroup>
+  <ItemDefinitionGroup>
+    <DriverSign>
+      <FileDigestAlgorithm>sha256</FileDigestAlgorithm>
+    </DriverSign>
+  </ItemDefinitionGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
-- 
2.31.1.windows.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.