Line 1... |
Line 1... |
#!/bin/bash
|
#!/bin/bash
|
# $Id: xtwi 735 2016-02-26 22:17:42Z mueller $
|
# $Id: xtwi 804 2016-08-28 17:33:50Z mueller $
|
#
|
#
|
# Copyright 2013-2016 by Walter F.J. Mueller
|
# Copyright 2013-2016 by Walter F.J. Mueller
|
# License disclaimer see LICENSE_gpl_v2.txt in $RETROBASE directory
|
# License disclaimer see LICENSE_gpl_v2.txt in $RETROBASE directory
|
#
|
#
|
# Xilinx Tool Wrapper script for ISE:
|
# Xilinx Tool Wrapper script for ISE:
|
# define XTWI_PATH
|
# define XTWI_PATH
|
# usage xwti
|
# usage xwti
|
#
|
#
|
# Revision History:
|
# Revision History:
|
# Date Rev Version Comment
|
# Date Rev Version Comment
|
|
# 2016-08-28 804 1.2 BUGFIX: add ":." to PATH even under BARE_PATH
|
# 2016-02-21 735 1.1 use BARE_PATH ect to provide clean environment
|
# 2016-02-21 735 1.1 use BARE_PATH ect to provide clean environment
|
# 2013-10-12 539 1.0 Initial version
|
# 2013-10-12 539 1.0 Initial version
|
#
|
#
|
# Note: For Xilinx ISE installations with an install path holds
|
# Note: For Xilinx ISE installations with an install path holds
|
# /ISE_DS dir with settings(32|64).sh
|
# /ISE_DS dir with settings(32|64).sh
|
Line 31... |
Line 32... |
echo "XTWI_PATH not defined"
|
echo "XTWI_PATH not defined"
|
exit 1
|
exit 1
|
fi
|
fi
|
|
|
# provide clean environment when BARE_PATH ect defined
|
# provide clean environment when BARE_PATH ect defined
|
# add only $RETROBASE/tools/bin to path
|
# add only $RETROBASE/tools/bin and '.' to path
|
|
# '.' is needed to start ISim tb's, which usually are in cwd
|
if [ -n "$BARE_PATH" ]
|
if [ -n "$BARE_PATH" ]
|
then
|
then
|
export PATH=$BARE_PATH:$RETROBASE/tools/bin
|
export PATH=$BARE_PATH:$RETROBASE/tools/bin:.
|
unset LD_LIBRARY_PATH
|
unset LD_LIBRARY_PATH
|
if [ -n "$BARE_LD_LIBRARY_PATH" ]
|
if [ -n "$BARE_LD_LIBRARY_PATH" ]
|
then
|
then
|
export LD_LIBRARY_PATH=$BARE_LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$BARE_LD_LIBRARY_PATH
|
fi
|
fi
|