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

changed usage of user_components.ipx file, now a copy from git is places in...

changed usage of user_components.ipx file, now a copy from git is places in each [version]/ip/altera/ directory
parent 909bf4f3
No related branches found
No related tags found
No related merge requests found
......@@ -42,32 +42,13 @@ export HDL_BUILD_DIR=${HDL_BUILD_DIR:-${RADIOHDL_WORK}/build}
echo "HDL environment will be setup for" $RADIOHDL_WORK
# if exist user_components.ipx file/link remove it and make a symlink to the minimal_user_components.ipx file
# Altera/[quartus_version]/ip/altera/user_componets.ipx should be a symbolic link to Altera/user_components.ipx
user_components_file="${ALTERA_DIR}/user_components.ipx"
if [ -e $user_components_file ]; then
echo "removing existing user_components.ipx symbolic link"
rm -f $user_components_file
fi
# make a new symbolic link to the git version
echo "making a new symbolic link"
ln -s ${RADIOHDL_WORK}/hdl_user_components.ipx $user_components_file
# # Finally check if user_component.ipx file of the altera package at least contains
# # the paths we need for HDL.
# package_ipx=${QUARTUS_DIR}/ip/altera/user_components.ipx
# minimal_ipx=${RADIOHDL_GEAR}/quartus/minimal_user_components.ipx
# # for each path found in minimal set, try to find it in package file
# grep "<path path=" $minimal_ipx | while read -r this_path
# do
# this_path=`echo $this_path | cut --delimiter='"' -f2`
# if grep -q "$this_path" $package_ipx ; then
# :
# # echo "Found $this_path in $package_ipx"
# else
# hdl_error $0 "can't find $this_path in ${package_ipx} Check your ipx setting."
# fi
# done
# copy git user_componets.ipx into Altera dir's
for altera_dir in ${ALTERA_DIR}/*; do
if [[ -d ${altera_dir} ]] && [[ ! -h ${altera_dir} ]]; then
echo "copy git hdl_user_components.ipx to ${altera_dir}/ip/altera/user_components.ipx"
cp ${RADIOHDL_WORK}/hdl_user_components.ipx $altera_dir/ip/altera/user_components.ipx
fi
done
if [ -z "${RADIOHDL_GEAR}" ]; then
......
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