aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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