aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Paebbels@gmail.com>2018-07-02 07:40:00 +0200
committerGitHub <noreply@github.com>2018-07-02 07:40:00 +0200
commitecd48092b465229ef36c4a00ac0df3f2ae6672e0 (patch)
tree6253acb59867a1b6954f3a709544b6a423d9c749
parent657fcfde5fb93c1311fe5fd2d28146c89852614d (diff)
parentf1bbe1639383cbb750667c1a3c542b176cf0ae46 (diff)
downloadghdl-ecd48092b465229ef36c4a00ac0df3f2ae6672e0.tar.gz
ghdl-ecd48092b465229ef36c4a00ac0df3f2ae6672e0.tar.bz2
ghdl-ecd48092b465229ef36c4a00ac0df3f2ae6672e0.zip
Merge pull request #617 from vuokko/compile-altera
Cyclone 1,2,3 support for compile-altera.sh
-rwxr-xr-xlibraries/vendors/compile-altera.sh73
1 files changed, 72 insertions, 1 deletions
diff --git a/libraries/vendors/compile-altera.sh b/libraries/vendors/compile-altera.sh
index 46cccfde1..3de2789b3 100755
--- a/libraries/vendors/compile-altera.sh
+++ b/libraries/vendors/compile-altera.sh
@@ -513,7 +513,72 @@ if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_ARRIA" == "TRUE" ] && [ $SKIP_LARGE_F
GHDLCompilePackages
fi
+# compile Cyclone library
+if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_CYCLONE" == "TRUE" ]; then
+ Library="cyclone"
+ Files=(
+ cyclone_atoms.vhd
+ cyclone_components.vhd
+ )
+ # append absolute source path
+ SourceFiles=()
+ for File in ${Files[@]}; do
+ FullPath="$SourceDirectory/$File"
+ #Don't put nonexisting files.
+ if [ -f $FullPath ]; then
+ SourceFiles+=($FullPath)
+ elif [ $SUPPRESS_WARNINGS -eq 0 ] ; then
+ echo -e "${ANSI_YELLOW}File ${FullPath} not found.${ANSI_NOCOLOR}"
+ fi
+ done
+
+ GHDLCompilePackages
+fi
+# compile CycloneII library
+if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_CYCLONE" == "TRUE" ]; then
+ Library="cycloneii"
+ Files=(
+ cycloneii_atoms.vhd
+ cycloneii_components.vhd
+ )
+
+ # append absolute source path
+ SourceFiles=()
+ for File in ${Files[@]}; do
+ FullPath="$SourceDirectory/$File"
+ #Don't put nonexisting files.
+ if [ -f $FullPath ]; then
+ SourceFiles+=($FullPath)
+ elif [ $SUPPRESS_WARNINGS -eq 0 ] ; then
+ echo -e "${ANSI_YELLOW}File ${FullPath} not found.${ANSI_NOCOLOR}"
+ fi
+ done
+
+ GHDLCompilePackages
+fi
+# compile Cyclone III library
+if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_CYCLONE" == "TRUE" ]; then
+ Library="cycloneiii"
+ Files=(
+ cycloneiii_atoms.vhd
+ cycloneiii_components.vhd
+ )
+
+ # append absolute source path
+ SourceFiles=()
+ for File in ${Files[@]}; do
+ FullPath="$SourceDirectory/$File"
+ #Don't put nonexisting files.
+ if [ -f $FullPath ]; then
+ SourceFiles+=($FullPath)
+ elif [ $SUPPRESS_WARNINGS -eq 0 ] ; then
+ echo -e "${ANSI_YELLOW}File ${FullPath} not found.${ANSI_NOCOLOR}"
+ fi
+ done
+
+ GHDLCompilePackages
+fi
# compile CycloneIV library
if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_CYCLONE" == "TRUE" ]; then
Library="cycloneiv"
@@ -583,7 +648,13 @@ if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_CYCLONE" == "TRUE" ]; then
# append absolute source path
SourceFiles=()
for File in ${Files[@]}; do
- SourceFiles+=("$SourceDirectory/$File")
+ FullPath="$SourceDirectory/$File"
+ #Don't put nonexisting files.
+ if [ -f $FullPath ]; then
+ SourceFiles+=($FullPath)
+ elif [ $SUPPRESS_WARNINGS -eq 0 ] ; then
+ echo -e "${ANSI_YELLOW}File ${FullPath} not found.${ANSI_NOCOLOR}"
+ fi
done
GHDLCompilePackages