diff options
author | Tristan Gingold | 2015-12-03 04:48:15 +0100 |
---|---|---|
committer | Tristan Gingold | 2015-12-03 04:48:15 +0100 |
commit | 6956cc80516f1dfc74a06a75b068437afba036ed (patch) | |
tree | 53dd811d0904efe594ec1cfe9692a224bde4456c /libraries/vendors/compile-altera.ps1 | |
parent | f7b737b52f57a46c2f96ad87ee50741abc415ed3 (diff) | |
download | ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.tar.gz ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.tar.bz2 ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.zip |
Add vendor specific library compile scripts for linux.
Merge branch from Paebbels.
Diffstat (limited to 'libraries/vendors/compile-altera.ps1')
-rw-r--r-- | libraries/vendors/compile-altera.ps1 | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/libraries/vendors/compile-altera.ps1 b/libraries/vendors/compile-altera.ps1 index 8bf97d9..cfd4bd5 100644 --- a/libraries/vendors/compile-altera.ps1 +++ b/libraries/vendors/compile-altera.ps1 @@ -62,8 +62,8 @@ param( # Compile the Altera Max device libraries [switch]$Max = $false, - # Compile the Altera Cyclon device libraries - [switch]$Cyclon = $false, + # Compile the Altera Cyclone device libraries + [switch]$Cyclone = $false, # Compile the Altera Arria device libraries [switch]$Arria = $false, @@ -75,12 +75,20 @@ param( [switch]$Nanometer = $false, # Clean up directory before analyzing. - [switch]$Clean = $false, + [switch]$Clean = $false, # Skip warning messages. (Show errors only.) - [switch]$SuppressWarnings = $false + [switch]$SuppressWarnings = $false, + + # Show the embedded help page(s) + [switch]$Help = $false ) +if ($Help) +{ Get-Help $MYINVOCATION.InvocationName -Detailed + return +} + # --------------------------------------------- # save working directory $WorkingDir = Get-Location @@ -98,7 +106,7 @@ if (-not $All) elseif ($All -eq $true) { $Altera = $true $Max = $true - $Cyclon = $true + $Cyclone = $true $Arria = $true $Stratix = $true $Nanometer = $true @@ -121,6 +129,9 @@ if ($Clean) { Write-Host "Cleaning up vendor directory ..." -ForegroundColor Yellow rm *.cf } + +# Altera standard libraries +# ============================================================================== # compile lpm library if ((-not $StopCompiling) -and $Altera) { Write-Host "Compiling library 'lpm' ..." -ForegroundColor Yellow @@ -159,8 +170,6 @@ if ((-not $StopCompiling) -and $Altera) $Options = $GlobalOptions $Files = ( "$SourceDir\altera_europa_support_lib.vhd", - "$SourceDir\altera_mf_components.vhd", - "$SourceDir\altera_mf.vhd", "$SourceDir\altera_primitives_components.vhd", "$SourceDir\altera_primitives.vhd", "$SourceDir\altera_standard_functions.vhd", @@ -205,6 +214,8 @@ if ((-not $StopCompiling) -and $Altera) } } +# Altera device libraries +# ============================================================================== # compile max library if ((-not $StopCompiling) -and $Max) { Write-Host "Compiling library 'max' ..." -ForegroundColor Yellow @@ -357,7 +368,7 @@ if ((-not $StopCompiling) -and $Arria) } # compile cycloneiv library -if ((-not $StopCompiling) -and $Cyclon) +if ((-not $StopCompiling) -and $Cyclone) { Write-Host "Compiling library 'cycloneiv' ..." -ForegroundColor Yellow $Options = $GlobalOptions $Files = ( @@ -375,7 +386,7 @@ if ((-not $StopCompiling) -and $Cyclon) } # compile cycloneiv_pcie_hip library -if ((-not $StopCompiling) -and $Cyclon) +if ((-not $StopCompiling) -and $Cyclone) { Write-Host "Compiling library 'cycloneiv_pcie_hip' ..." -ForegroundColor Yellow $Options = $GlobalOptions $Files = ( @@ -391,7 +402,7 @@ if ((-not $StopCompiling) -and $Cyclon) } # compile cycloneive library -if ((-not $StopCompiling) -and $Cyclon) +if ((-not $StopCompiling) -and $Cyclone) { Write-Host "Compiling library 'cycloneive' ..." -ForegroundColor Yellow $Options = $GlobalOptions $Files = ( @@ -407,7 +418,7 @@ if ((-not $StopCompiling) -and $Cyclon) } # compile cyclonev library -if ((-not $StopCompiling) -and $Cyclon) +if ((-not $StopCompiling) -and $Cyclone) { Write-Host "Compiling library 'cyclonev' ..." -ForegroundColor Yellow $Options = $GlobalOptions $Files = ( |