aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libraries/vendors/compile-altera.ps14
-rw-r--r--libraries/vendors/compile-intel.ps14
-rw-r--r--libraries/vendors/compile-lattice.ps14
-rw-r--r--libraries/vendors/compile-xilinx-ise.ps14
-rw-r--r--libraries/vendors/compile-xilinx-vivado.ps14
5 files changed, 10 insertions, 10 deletions
diff --git a/libraries/vendors/compile-altera.ps1 b/libraries/vendors/compile-altera.ps1
index a6b442926..f797ce155 100644
--- a/libraries/vendors/compile-altera.ps1
+++ b/libraries/vendors/compile-altera.ps1
@@ -132,8 +132,8 @@ function Get-AlteraQuartusDirectory
{ return $QUARTUS_ROOTDIR + "\" + (Get-VendorToolSourceDirectory) }
else
{ $EnvSourceDir = ""
- foreach ($Drive in Get-DriveInfo)
- { $Path = $Drive.Name + "Altera"
+ foreach ($Drive in gdr -PSProvider 'FileSystem')
+ { $Path = $Drive.Name + ":\" + "Altera"
if (Test-Path $Path -PathType Container)
{ foreach ($Major in 16..13)
{ foreach ($Minor in 3..0)
diff --git a/libraries/vendors/compile-intel.ps1 b/libraries/vendors/compile-intel.ps1
index a5dd32302..db0504b54 100644
--- a/libraries/vendors/compile-intel.ps1
+++ b/libraries/vendors/compile-intel.ps1
@@ -135,8 +135,8 @@ function Get-AlteraQuartusDirectory
{ return $QUARTUS_ROOTDIR + "\" + (Get-VendorToolSourceDirectory) }
else
{ $EnvSourceDir = ""
- foreach ($Drive in Get-DriveInfo)
- { $Path = $Drive.Name + "Altera"
+ foreach ($Drive in gdr -PSProvider 'FileSystem')
+ { $Path = $Drive.Name + ":\" + "Altera"
if (Test-Path $Path -PathType Container)
{ foreach ($Major in 16..13)
{ foreach ($Minor in 3..0)
diff --git a/libraries/vendors/compile-lattice.ps1 b/libraries/vendors/compile-lattice.ps1
index 2761bf816..847e5b1e5 100644
--- a/libraries/vendors/compile-lattice.ps1
+++ b/libraries/vendors/compile-lattice.ps1
@@ -157,8 +157,8 @@ function Get-LatticeDiamondDirectory
{ return $FOUNDRY + "\..\" + (Get-VendorToolSourceDirectory) }
else
{ $EnvSourceDir = ""
- foreach ($Drive in Get-DriveInfo)
- { $Path = $Drive.Name + "Lattice\Diamond"
+ foreach ($Drive in gdr -PSProvider 'FileSystem')
+ { $Path = $Drive.Name + ":\" + "Lattice\Diamond"
if (Test-Path $Path -PathType Container)
{ foreach ($Major in 4..3)
{ foreach ($Minor in 9..0)
diff --git a/libraries/vendors/compile-xilinx-ise.ps1 b/libraries/vendors/compile-xilinx-ise.ps1
index 42a54327e..d92fc51a8 100644
--- a/libraries/vendors/compile-xilinx-ise.ps1
+++ b/libraries/vendors/compile-xilinx-ise.ps1
@@ -127,8 +127,8 @@ function Get-XilinxISEDirectory
{ return $XILINX + "\" + (Get-VendorToolSourceDirectory) }
else
{ $EnvSourceDir = ""
- foreach ($Drive in Get-DriveInfo)
- { $Path = $Drive.Name + "Xilinx"
+ foreach ($Drive in gdr -PSProvider 'FileSystem')
+ { $Path = $Drive.Name + ":\" + "Xilinx"
if (Test-Path $Path -PathType Container)
{ foreach ($Major in 14..12)
{ foreach ($Minor in 7..1)
diff --git a/libraries/vendors/compile-xilinx-vivado.ps1 b/libraries/vendors/compile-xilinx-vivado.ps1
index c25ab0c08..1338048d5 100644
--- a/libraries/vendors/compile-xilinx-vivado.ps1
+++ b/libraries/vendors/compile-xilinx-vivado.ps1
@@ -113,8 +113,8 @@ function Get-XilinxVivadoDirectory
{ return $XILINX_VIVADO + "\" + (Get-VendorToolSourceDirectory) }
else
{ $EnvSourceDir = ""
- foreach ($Drive in Get-DriveInfo)
- { $Path = $Drive.Name + "Xilinx\Vivado"
+ foreach ($Drive in gdr -PSProvider 'FileSystem')
+ { $Path = $Drive.Name + ":\" + "Xilinx\Vivado"
if (Test-Path $Path -PathType Container)
{ foreach ($Major in 2018..2014)
{ foreach ($Minor in 4..1)