fpga: tools: Fix HLS IP builder for Vivado 2021.1

Original-commit: 9300a0718274ede56cda3f48e43c9f0e1df4674b
This commit is contained in:
Humberto Jimenez
2022-08-25 13:55:30 -05:00
committed by skooNI
parent 959ce49389
commit f53e3f27fc
3 changed files with 7 additions and 12 deletions
+1 -11
View File
@@ -40,22 +40,12 @@ function print_color {
# Functions
#------------------------------------------
export VLINT_PLATFORM=$(uname -o)
function resolve_vlint_path {
if [[ $VLINT_PLATFORM = "Cygwin" ]]; then
echo $(cygpath -am $1)
else
echo $1
fi
}
# Replace any directories with the files they include
function replace_dirs_with_source {
for file in "$@"
do
if [ -d $file ]; then
# Quotes so that resolve_vlint_path converts all paths
echo "$(resolve_vlint_path "$(realpath $(find $file -maxdepth 1 -type f))") "
echo "resolve_viv_path $(realpath $(find $file -maxdepth 1 -type f)) "
else
echo "$file "
fi