URL
https://opencores.org/ocsvn/w11/w11/trunk
Subversion Repositories w11
[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [bin/] [xtwv] - Rev 23
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/bash
# $Id: xtwv 554 2014-04-21 14:01:51Z mueller $
#
# Xilinx Tool Wrapper script for Vivado
# define XTWV_PATH
# usage xwtv <vivado command>
#
# Revision History:
# Date Rev Version Comment
# 2014-04-18 554 1.0.1 fake XILINX_VIVADO, 2014.1 doesn't define it anymore
# 2013-10-12 539 1.0 Initial version (cloned from xtwi)
#
# Note: For Xilinx Vivado installations with an install path <ipath> holds
# <ipath> dir with settings(32|64).sh
#
# store arg list on vars (will be dropped later to source scripts)
arglist_val=$@
arglist_num=$#
#
# check whether Vivado already setup ($XILINX_VIVADO defined)
if [ -z "$XILINX_VIVADO" ]
then
# check whether $XTWV_PATH defined
if [ -z "$XTWV_PATH" ]
then
echo "XTWV_PATH not defined"
exit 1
fi
# check whether 32 or 64 bit system (uname -m gives 'i686' or 'x86_64')
if [ `uname -m` = "x86_64" ]
then
settings_filename=$XTWV_PATH/settings64.sh
else
settings_filename=$XTWV_PATH/settings32.sh
fi
if [ ! -e "$settings_filename" ]
then
echo "can't locate init script '$settings_filename'"
exit 1
fi
# drop arg list, suppress output
set --
. $settings_filename > /dev/null
# check that XILINX_VIVADO defined
if [ -z "$XILINX_VIVADO" ]
then
export XILINX_VIVADO=$XTWV_PATH/.
fi
else
echo "XILINX_VIVADO already defined"
fi
if [ $arglist_num != 0 ]
then
exec $arglist_val
fi
Go to most recent revision | Compare with Previous | Blame | View Log