OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [bin/] [xtwv] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 23 wfjm
#!/bin/bash
2 29 wfjm
# $Id: xtwv 641 2015-02-01 22:12:15Z mueller $
3 23 wfjm
#
4 29 wfjm
# Copyright 2013- by Walter F.J. Mueller 
5
# License disclaimer see LICENSE_gpl_v2.txt in $RETROBASE directory
6
#
7 23 wfjm
# Xilinx Tool Wrapper script for Vivado
8
#   define XTWV_PATH
9
#   usage  xwtv 
10
#
11
#  Revision History:
12
# Date         Rev Version  Comment
13
# 2014-04-18   554   1.0.1  fake XILINX_VIVADO, 2014.1 doesn't define it anymore
14
# 2013-10-12   539   1.0    Initial version (cloned from xtwi)
15
#
16
# Note: For Xilinx Vivado installations with an install path  holds
17
#                dir with settings(32|64).sh
18
#
19
 
20
# store arg list on vars (will be dropped later to source scripts)
21
arglist_val=$@
22
arglist_num=$#
23
#
24
# check whether Vivado already setup ($XILINX_VIVADO defined)
25
if [ -z "$XILINX_VIVADO" ]
26
then
27
  # check whether $XTWV_PATH defined
28
  if [ -z "$XTWV_PATH" ]
29
  then
30
    echo "XTWV_PATH not defined"
31
    exit 1
32
  fi
33
 
34
  # check whether 32 or 64 bit system (uname -m gives 'i686' or 'x86_64')
35
  if [ `uname -m` = "x86_64" ]
36
  then
37
    settings_filename=$XTWV_PATH/settings64.sh
38
  else
39
    settings_filename=$XTWV_PATH/settings32.sh
40
  fi
41
  if [ ! -e "$settings_filename" ]
42
  then
43
    echo "can't locate init script '$settings_filename'"
44
    exit 1
45
  fi
46
 
47
  # drop arg list, suppress output
48
  set --
49
  . $settings_filename > /dev/null
50
 
51
  # check that XILINX_VIVADO defined
52
  if [ -z "$XILINX_VIVADO" ]
53
  then
54
    export XILINX_VIVADO=$XTWV_PATH/.
55
  fi
56
 
57
else
58
  echo "XILINX_VIVADO already defined"
59
fi
60
 
61
if [ $arglist_num != 0 ]
62
then
63
  exec $arglist_val
64
fi

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.