|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] Allow user to specify desired build architecture
Often times we only need to build a driver for a single
targeted architecture. Continue to build both by default,
but allow the user to specify one if desired.
Signed-off-by: Nicholas Tsirakis <tsirakisn@xxxxxxxxxxxx>
---
build.ps1 | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/build.ps1 b/build.ps1
index c66ac05..06626fd 100644
--- a/build.ps1
+++ b/build.ps1
@@ -5,6 +5,7 @@
param(
[Parameter(Mandatory = $true)]
[string]$Type,
+ [string]$Arch,
[switch]$Sdv
)
@@ -82,8 +83,13 @@ Set-Item -Path Env:MAJOR_VERSION -Value '9'
Set-Item -Path Env:MINOR_VERSION -Value '1'
Set-Item -Path Env:MICRO_VERSION -Value '0'
-Build "x86" $Type
-Build "x64" $Type
+if ($Arch -eq "" -or $Arch -eq "x86" -or $Arch -eq "Win32") {
+ Build "x86" $Type
+}
+
+if ($Arch -eq "" -or $Arch -eq "x64") {
+ Build "x64" $Type
+}
if ($Sdv) {
SdvBuild
--
2.25.4
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |