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@ainfosec.com>
Use [string]::IsNullOrEmpty($Arch)
Signed-off-by: Paul Durrant <paul@xen.org>
param(
[Parameter(Mandatory = $true)]
[string]$Type,
+ [string]$Arch,
[switch]$Sdv
)
Set-Item -Path Env:MINOR_VERSION -Value '1'
Set-Item -Path Env:MICRO_VERSION -Value '0'
-Build "x86" $Type
-Build "x64" $Type
+if ([string]::IsNullOrEmpty($Arch) -or $Arch -eq "x86" -or $Arch -eq "Win32") {
+ Build "x86" $Type
+}
+
+if ([string]::IsNullOrEmpty($Arch) -or $Arch -eq "x64") {
+ Build "x64" $Type
+}
if ($Sdv) {
SdvBuild