From a14b6aebc18f5d1515a9a713a6defbaee883a63e Mon Sep 17 00:00:00 2001 From: Adonais Romero González Date: Mon, 13 Nov 2023 13:57:25 -0800 Subject: Add InfVerif exceptions on main branch --- Build-Sample.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Build-Sample.ps1 b/Build-Sample.ps1 index 4f8f5b0b..27f1b6bb 100644 --- a/Build-Sample.ps1 +++ b/Build-Sample.ps1 @@ -139,7 +139,15 @@ $OutLogFilePath = "$LogFilesDirectory\$SampleName.$Configuration.$Platform.out" Write-Verbose "Building Sample: $SampleName; Configuration: $Configuration; Platform: $Platform {" -msbuild $solutionFile -clp:Verbosity=m -t:clean,build -property:Configuration=$Configuration -property:Platform=$Platform -p:TargetVersion=Windows10 -p:InfVerif_AdditionalOptions="/msft /sw1205 /sw1324 /sw1420 /sw1421" -p:SignToolWS=/fdws -p:DriverCFlagAddOn=/wd4996 -flp1:errorsonly`;logfile=$errorLogFilePath -flp2:WarningsOnly`;logfile=$warnLogFilePath -noLogo > $OutLogFilePath +# Exclude certain InfVerif exceptions to allow samples to build and detect other errors. +# error 1205: Section [xxx] referenced from DelFiles and CopyFiles directive - network\trans +# error 1144: Device software with SoftwareType 1 may not execute on all product types - general\dchu\osrfx2_dchu_extension_tight +# error 1233: Missing directive CatalogFile required for digital signature - storage\class\disk +# error 2083: Section [xxx] not referenced or used - network\trans, storage\msdsm +# error 2084: Service binary 'xxx' should reference a CopyFiles destination file - network\trans, wpd\wpdservicesampledriver +# errors 1324, 1420, 1421 will be excluded in main branch only until the fixes are merged. +# error 2086 will be excluded until the WDK used in GitHub is updated. +msbuild $solutionFile -clp:Verbosity=m -t:clean,build -property:Configuration=$Configuration -property:Platform=$Platform -p:TargetVersion=Windows10 -p:InfVerif_AdditionalOptions="/samples /msft /sw1144 /sw1199 /sw1205 /sw1233 /sw1324 /sw1420 /sw1421 /sw2083 /sw2084 /sw2086" -p:SignToolWS=/fdws -p:DriverCFlagAddOn=/wd4996 -warnaserror -flp1:errorsonly`;logfile=$errorLogFilePath -flp2:WarningsOnly`;logfile=$warnLogFilePath -noLogo > $OutLogFilePath if ($env:WDS_WipeOutputs -ne $null) { Write-Verbose ("WipeOutputs: "+$Directory+" "+(((Get-Volume ($DriveLetter=(Get-Item ".").PSDrive.Name)).SizeRemaining/1GB))) -- cgit v1.3.1 From d9bea2cdcc8133fb5a9e527b7840aac16f2b5fe8 Mon Sep 17 00:00:00 2001 From: JakobL-MSFT <110699333+JakobL-MSFT@users.noreply.github.com> Date: Mon, 13 Nov 2023 10:21:17 -0800 Subject: 47451678: Windows-driver-samples /Building-Locally.md: Remove ping (`) from instructions (#1050) --- Building-Locally.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Building-Locally.md b/Building-Locally.md index b4f0339a..838686a5 100644 --- a/Building-Locally.md +++ b/Building-Locally.md @@ -3,7 +3,7 @@ ## Step 1: Install git and pwsh 7.3.0 ``` winget install --id Microsoft.Powershell --source winget -winget install --id Git.Git --source winget` +winget install --id Git.Git --source winget ``` ## Step 2: Create a "driver build environment" -- cgit v1.3.1 From 6971eb69270c614964808f0409fe0b479da51270 Mon Sep 17 00:00:00 2001 From: Adonais Romero González Date: Mon, 13 Nov 2023 10:32:46 -0800 Subject: Minor adjustments to build instructions (#1021) --- Building-Locally.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Building-Locally.md b/Building-Locally.md index 838686a5..77f747a0 100644 --- a/Building-Locally.md +++ b/Building-Locally.md @@ -1,6 +1,7 @@ # How to build locally -## Step 1: Install git and pwsh 7.3.0 +## Step 1: Install Git and PowerShell 7 + ``` winget install --id Microsoft.Powershell --source winget winget install --id Git.Git --source winget @@ -10,7 +11,7 @@ winget install --id Git.Git --source winget There are multiple ways to achieve this. For example, [install Visual Studio and the Windows Driver Kit](https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk#download-and-install-the-windows-11-version-22h2-wdk). -You can also just download and mount the EWDK as well and in the following example that is what we will do: +You can also use the Enterprise WDK (EWDK), a standalone, self-contained command-line environment for building drivers: * Download the Windows 11, version 22H2 EWDK ISO image from the [official site](https://learn.microsoft.com/en-us/legal/windows/hardware/enterprise-wdk-license-2022) * Mount ISO image * Open a terminal -- cgit v1.3.1