summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdonais Romero González <[email protected]>2023-11-13 13:57:25 -0800
committerAdonais Romero González <[email protected]>2023-11-13 13:57:25 -0800
commita14b6aebc18f5d1515a9a713a6defbaee883a63e (patch)
tree3fafa6e993e67a482c6d2dda5151b309fdcf07e2
parent50df9d04730457b381c74e7b78edb1d0f8208ec6 (diff)
Add InfVerif exceptions on main branch
-rw-r--r--Build-Sample.ps110
1 files changed, 9 insertions, 1 deletions
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)))