Skip to content

Commit

Permalink
Add more InfVerif exceptions & clear exclusions.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoAdonis committed Nov 13, 2023
1 parent f07f43c commit 2188f2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Build-Sample.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,14 @@ $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="/samples /msft /sw1205 /sw1324 /sw1420 /sw1421 /sw2086" -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 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 /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)))
Expand Down
2 changes: 0 additions & 2 deletions exclusions.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
Path,Reason
storage\class\disk, InfVerif error 1233: Missing directive CatalogFile required for digital signature
general\dchu\osrfx2_dchu_extension_loose,Needs fix for project not found
general\dchu\osrfx2_dchu_extension_tight,InfVerif error 1144: Device software with SoftwareType 1 may not execute on all product types
general\winhec 2017 lab\toaster driver,Needs input from end user
general\winhec 2017 lab\toaster support app,Needs input from end user
network\trans\wfpsampler,Missing INF section; missing libs
Expand Down

0 comments on commit 2188f2b

Please sign in to comment.