diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-14 20:36:37 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-14 20:36:37 +0200 |
| commit | d4e9e941da4dbd2f338fd9a1e3d13df56dc3a02f (patch) | |
| tree | 46d67f43cdd6d59615a6e30f86be411ebb38074e | |
| parent | km/build: dedupe .git{ignore,attributes} files (diff) | |
| download | windows7-drivers-d4e9e941da4dbd2f338fd9a1e3d13df56dc3a02f.tar.gz windows7-drivers-d4e9e941da4dbd2f338fd9a1e3d13df56dc3a02f.zip | |
scripts/build.ps1: add WDK version as a parameter
Diffstat (limited to '')
| -rw-r--r-- | .appveyor.yml | 3 | ||||
| -rw-r--r-- | scripts/build.ps1 | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index a6dccbd..add6b7e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -43,7 +43,8 @@ build_script: .\scripts\build.ps1 ` -InstallDir ..\build\install ` -Configuration "$Env:TARGET_OS $Env:CONFIGURATION" ` - -Platform $Env:PLATFORM + -Platform $Env:PLATFORM ` + -WDK wdk8.1update after_build: - 7z.exe a "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%-%TARGET_OS%.zip" "..\build\install\*" diff --git a/scripts/build.ps1 b/scripts/build.ps1 index a68caad..900a2d3 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -4,7 +4,9 @@ param( [Parameter(Mandatory=$true)] [string] $Platform = $null, [Parameter(Mandatory=$true)] - [string] $Configuration = $null + [string] $Configuration = $null, + [Parameter(Mandatory=$true)] + [string] $WDK = $null ) $ErrorActionPreference = "Stop"; @@ -39,7 +41,7 @@ function Get-DriverBuildDir { [string] $DriverName ) - return "$script:PSScriptRoot\..\km\build\wdk8.1update\$DriverName" + return "$script:PSScriptRoot\..\km\build\$script:WDK\$DriverName" } function Get-DriverSolutionPath { |
