aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-14 20:36:37 +0200
committerEgor Tensin <egor@tensin.name>2026-06-14 20:36:37 +0200
commitd4e9e941da4dbd2f338fd9a1e3d13df56dc3a02f (patch)
tree46d67f43cdd6d59615a6e30f86be411ebb38074e
parentkm/build: dedupe .git{ignore,attributes} files (diff)
downloadwindows7-drivers-d4e9e941da4dbd2f338fd9a1e3d13df56dc3a02f.tar.gz
windows7-drivers-d4e9e941da4dbd2f338fd9a1e3d13df56dc3a02f.zip
scripts/build.ps1: add WDK version as a parameter
Diffstat (limited to '')
-rw-r--r--.appveyor.yml3
-rw-r--r--scripts/build.ps16
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 {