[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix compile on EWDK 22000
- To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
- From: Paul Durrant <xadimgnik@xxxxxxxxx>
- Date: Thu, 5 Aug 2021 19:09:24 +0100
- Delivery-date: Thu, 05 Aug 2021 18:09:31 +0000
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
On 03/08/2021 15:38, Owen Smith wrote:
- 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>
Do the other drivers also suffer from this problem?
Paul
---
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>
|