Skip to content
Snippets Groups Projects
Commit afd5a5b2 authored by Pieter Donker's avatar Pieter Donker
Browse files

init args only if available

parent 57d7a495
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,16 @@ echo "HDL environment will be setup for" $RADIOHDL_WORK
# setup paths to build and config dir if not already defined by the user.
export ARGS_WORK=${RADIOHDL_WORK}
export RADIOHDL_BUILD_DIR=${RADIOHDL_WORK}/build
if [[ ! -d "${RADIOHDL_BUILD_DIR}" ]]; then
echo "make buil dir"
echo "${RADIOHDL_BUILD_DIR}"
mkdir "${RADIOHDL_BUILD_DIR}"
fi
# modelsim uses this sim dir for testing
export HDL_IOFILE_SIM_DIR=${RADIOHDL_BUILD_DIR}/sim
if [[ ! -d "${HDL_IOFILE_SIM_DIR}" ]]; then
echo "make sim dir"
echo "${HDL_IOFILE_SIM_DIR}"
mkdir "${HDL_IOFILE_SIM_DIR}"
fi
# if sim dir not empty, remove all files and dirs
......@@ -72,4 +77,6 @@ done
# source also radiohdl and args tools
. ../radiohdl/init_radiohdl.sh
. ../args/init_args.sh
if [[ -d "${RADIOHDL_WORK}/../args" ]]; then
. ../args/init_args.sh
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment