Skip to content
Snippets Groups Projects
Commit ba448517 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Use <toolset> in build dir path.

parent f905b90e
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,11 @@ proc hdl_build {} { ...@@ -59,6 +59,11 @@ proc hdl_build {} {
return $env(HDL_BUILD_DIR) return $env(HDL_BUILD_DIR)
} }
proc hdl_toolset {} {
global env
return $env(TOOLSET)
}
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# LP = Load project # LP = Load project
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
...@@ -324,7 +329,7 @@ proc mk_test {arg_lib} { ...@@ -324,7 +329,7 @@ proc mk_test {arg_lib} {
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
proc read_modelsim_project_files_file {} { proc read_modelsim_project_files_file {} {
set fp [open [hdl_build]/modelsim/modelsim_project_files.txt] set fp [open [hdl_build]/[hdl_toolset]/modelsim/modelsim_project_files.txt]
set data [read $fp] set data [read $fp]
close $fp close $fp
set lines [split $data \n] set lines [split $data \n]
......
...@@ -75,7 +75,7 @@ PRJS="${RADIOHDL}" ...@@ -75,7 +75,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
......
...@@ -76,7 +76,7 @@ PRJS="${RADIOHDL}" ...@@ -76,7 +76,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
......
...@@ -123,7 +123,7 @@ PRJS="${RADIOHDL}" ...@@ -123,7 +123,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -138,7 +138,7 @@ if [ -z "${app}" ]; then ...@@ -138,7 +138,7 @@ if [ -z "${app}" ]; then
fi fi
# Generate the paths we need # Generate the paths we need
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
builddir="${quartusdir}/software" builddir="${quartusdir}/software"
bspdstdir="${builddir}/bsp" bspdstdir="${builddir}/bsp"
unbsrcdir="${UNB}/Firmware/software/modules/src" unbsrcdir="${UNB}/Firmware/software/modules/src"
......
...@@ -83,7 +83,7 @@ PRJS="${RADIOHDL}" ...@@ -83,7 +83,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -103,7 +103,7 @@ fi ...@@ -103,7 +103,7 @@ fi
# situations (exist + clean) vs (!exist + !clean). # situations (exist + clean) vs (!exist + !clean).
# For now I (H. Verkouter) lean towards the logical clause since I think # For now I (H. Verkouter) lean towards the logical clause since I think
# a non-fatal failure at this stage should not break other scripts # a non-fatal failure at this stage should not break other scripts
appdir="${PRJ}/build/quartus/${project}/software/${app}" appdir="${PRJ}/build/${toolset}/quartus/${project}/software/${app}"
if [ -d "${appdir}" ]; then if [ -d "${appdir}" ]; then
unb_exec $0 msg=no rm -Rf ${appdir} unb_exec $0 msg=no rm -Rf ${appdir}
......
...@@ -81,7 +81,7 @@ PRJS="${RADIOHDL}" ...@@ -81,7 +81,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -90,7 +90,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then ...@@ -90,7 +90,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then
fi fi
# now we can generate paths # now we can generate paths
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
builddir="${quartusdir}/software" builddir="${quartusdir}/software"
bspdir="${builddir}/bsp" bspdir="${builddir}/bsp"
......
...@@ -83,7 +83,7 @@ PRJS="${RADIOHDL}" ...@@ -83,7 +83,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -91,7 +91,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then ...@@ -91,7 +91,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then
unb_error $0 "Please enter a valid project name as parameter" unb_error $0 "Please enter a valid project name as parameter"
fi fi
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
builddir="${quartusdir}/software" builddir="${quartusdir}/software"
bspdstdir="${builddir}/bsp" bspdstdir="${builddir}/bsp"
......
...@@ -86,7 +86,7 @@ PRJS="${RADIOHDL}" ...@@ -86,7 +86,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -95,7 +95,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then ...@@ -95,7 +95,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then
fi fi
# check if the quartus project directory is there # check if the quartus project directory is there
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
unb_exec $0 msg=no test -d ${quartusdir} unb_exec $0 msg=no test -d ${quartusdir}
if [ -z "${rev}" ]; then if [ -z "${rev}" ]; then
......
...@@ -72,7 +72,7 @@ PRJS="${RADIOHDL}" ...@@ -72,7 +72,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -81,7 +81,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then ...@@ -81,7 +81,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then
fi fi
# Form name of quartusdir and check if it indeed exists # Form name of quartusdir and check if it indeed exists
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
unb_exec $0 msg=no test -d ${quartusdir} unb_exec $0 msg=no test -d ${quartusdir}
# the QSYS file is optional. If it is omitted choose the first # the QSYS file is optional. If it is omitted choose the first
......
...@@ -78,7 +78,7 @@ PRJS="${RADIOHDL}" ...@@ -78,7 +78,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -86,7 +86,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then ...@@ -86,7 +86,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then
unb_error $0 "Please enter a valid project name as parameter" unb_error $0 "Please enter a valid project name as parameter"
fi fi
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
if [ -z "${rev}" ]; then if [ -z "${rev}" ]; then
project_rev="${project}" project_rev="${project}"
......
...@@ -78,7 +78,7 @@ PRJS="${RADIOHDL}" ...@@ -78,7 +78,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -86,7 +86,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then ...@@ -86,7 +86,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then
unb_error $0 "Please enter a valid project name as parameter" unb_error $0 "Please enter a valid project name as parameter"
fi fi
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
builddir="${quartusdir}/software" builddir="${quartusdir}/software"
bspdstdir="${builddir}/bsp" bspdstdir="${builddir}/bsp"
......
...@@ -147,7 +147,7 @@ PRJS="${RADIOHDL}" ...@@ -147,7 +147,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -162,7 +162,7 @@ fi ...@@ -162,7 +162,7 @@ fi
# check if the quartusdirectory does exist # check if the quartusdirectory does exist
# (such that it won't fail with a cryptic error but with # (such that it won't fail with a cryptic error but with
# a readable one # a readable one
quartusdir[1]="${PRJ}/build/quartus/${project}" quartusdir[1]="${PRJ}/build/${toolset}/quartus/${project}"
unb_exec $0 msg=no test -d ${quartusdir[1]} unb_exec $0 msg=no test -d ${quartusdir[1]}
if [ -z "${rev}" ]; then if [ -z "${rev}" ]; then
......
...@@ -74,7 +74,7 @@ PRJS="${RADIOHDL}" ...@@ -74,7 +74,7 @@ PRJS="${RADIOHDL}"
PRJ= PRJ=
for prj in ${PRJS} for prj in ${PRJS}
do do
if [ -d "${prj}/build/quartus/${project}" ]; then if [ -d "${prj}/build/${toolset}/quartus/${project}" ]; then
PRJ=${prj} PRJ=${prj}
fi fi
done done
...@@ -83,7 +83,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then ...@@ -83,7 +83,7 @@ if [ -z "${project}" -o -z "${PRJ}" ]; then
fi fi
# Form name of quartusdir and check if it indeed exists # Form name of quartusdir and check if it indeed exists
quartusdir="${PRJ}/build/quartus/${project}" quartusdir="${PRJ}/build/${toolset}/quartus/${project}"
unb_exec $0 msg=no test -d ${quartusdir} unb_exec $0 msg=no test -d ${quartusdir}
# the SOPC file is optional. If it is omitted choose the first # the SOPC file is optional. If it is omitted choose the first
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment