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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [bin/] [xtwi] - Blame information for rev 36

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 22 wfjm
#!/bin/bash
2 29 wfjm
# $Id: xtwi 641 2015-02-01 22:12:15Z mueller $
3 22 wfjm
#
4 29 wfjm
# Copyright 2013- by Walter F.J. Mueller 
5
# License disclaimer see LICENSE_gpl_v2.txt in $RETROBASE directory
6
#
7 22 wfjm
# Xilinx Tool Wrapper script for ISE:
8
#   define XTWI_PATH
9
#   usage  xwti 
10
#
11
#  Revision History:
12
# Date         Rev Version  Comment
13
# 2013-10-12   539   1.0    Initial version
14
#
15
# Note: For Xilinx ISE installations with an install path  holds
16
#         /ISE_DS        dir with settings(32|64).sh
17
#         /ISE_DS/ISE    XILINX env var will point here
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 ISE already setup ($XILINX defined)
25
if [ -z "$XILINX" ]
26
then
27
  # check whether $XTWI_PATH defined
28
  if [ -z "$XTWI_PATH" ]
29
  then
30
    echo "XTWI_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=$XTWI_PATH/ISE_DS/settings64.sh
38
  else
39
    settings_filename=$XTWI_PATH/ISE_DS/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 defined
52
  if [ -z "$XILINX" ]
53
  then
54
    echo "Failed to setup XILINX"
55
    exit 1
56
  fi
57
 
58
else
59
  echo "XILINX already defined"
60
fi
61
 
62
if [ $arglist_num != 0 ]
63
then
64
  exec $arglist_val
65
fi

powered by: WebSVN 2.1.0

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