From 8023518fdabcfc9f00a9bff06f503961cb0c9f8e Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Tue, 7 Oct 2014 08:55:46 +0000
Subject: [PATCH] Use set_quartus to make the settings for the Quartus target
 version.

---
 tools/quartus/run_quartus | 23 ++---------------------
 1 file changed, 2 insertions(+), 21 deletions(-)

diff --git a/tools/quartus/run_quartus b/tools/quartus/run_quartus
index d0fef5a4f6..39d00dcad1 100755
--- a/tools/quartus/run_quartus
+++ b/tools/quartus/run_quartus
@@ -23,27 +23,8 @@
 # General tool and project settings
 # - use '. <script>.sh' to have the settings apply in this shell, otherwise they get lost when <script>.sh returns
 
-# Select target
-TARGET=${1:-}
-if [ "${TARGET}" = "" ]; then
-  TARGET="default"
-fi
-echo "Start Quartus GUI for RadioHDL with target: ${TARGET}"
-
-# Select tool version
-if [ "${TARGET}" = "default" ]; then
-  . ${RADIOHDL}/tools/quartus/quartus_version.sh 11.1
-elif [ "${TARGET}" = "unb1" ]; then
-  . ${RADIOHDL}/tools/quartus/quartus_version.sh 11.1
-elif [ "${TARGET}" = "unb2" ]; then
-  . ${RADIOHDL}/tools/quartus/quartus_version.sh 14.0a10
-else
-  echo "error: unknown target"
-  exit 1
-fi
-
-# Tool settings
-. ${RADIOHDL}/tools/quartus/quartus_generic.sh
+# Tool settings for selected target "", "unb1", or "unb2" (where "" defaults to target "unb1")
+. ${RADIOHDL}/tools/quartus/set_quartus ${1:-}
 
 # Start the Quartus GUI
 quartus --64bit
-- 
GitLab