diff --git a/simics-tools/.package-list b/simics-tools/.package-list deleted file mode 100644 index 038441e..0000000 --- a/simics-tools/.package-list +++ /dev/null @@ -1,3 +0,0 @@ -../simics-cryptography-4.8.16 -../simics-eclipse-4.8.78 -../simics-goldsand-4.8.pre83 diff --git a/simics-tools/bin/craff b/simics-tools/bin/craff deleted file mode 100755 index 441b0ee..0000000 --- a/simics-tools/bin/craff +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -. `dirname "$0"`/../scripts/find-paths.sh - -"$BINDIR/craff" "$@" diff --git a/simics-tools/linux64/bin/craff b/simics-tools/linux64/bin/craff deleted file mode 100755 index 8e313e3..0000000 Binary files a/simics-tools/linux64/bin/craff and /dev/null differ diff --git a/simics-tools/scripts/find-paths.sh b/simics-tools/scripts/find-paths.sh deleted file mode 100755 index 66fee85..0000000 --- a/simics-tools/scripts/find-paths.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -if [ "x$SIMICS_BASE_PACKAGE" != "x" ]; then - DIR="$SIMICS_BASE_PACKAGE/bin/`basename "$0"`" -else - DIR="$0" -fi - -case `uname` in - CYGWIN*) - DIR="`cygpath "$0"`" - ;; -esac - -SCRIPTSDIR="`dirname "$DIR"`" -SCRIPTSDIR="`cd "$SCRIPTSDIR"; pwd`" # allow convoluted start paths -if [ "$SCRIPTSDIR" = "." ] ; then - HOSTSDIR="`cd .. ; pwd`" -else - # find HOSTSDIR in a way that works when running from a user-install - HOSTSDIR="$(dirname "$SCRIPTSDIR")" - HOSTSDIR="$(cd "$HOSTSDIR" ; pwd)" -fi - -USER_SET_HOST=$SIMICS_HOST -SIMICS_HOST="$(sh "$HOSTSDIR"/scripts/host-type.sh 2> /dev/null)" - -if [ -z "$SIMICS_HOST" ] ; then - SIMICS_HOST=$USER_SET_HOST - echo "The Simics start-script failed to find a matching host for Simics." - if [ -z "$USER_SET_HOST" ] ; then - echo "Set the SIMICS_HOST environment variable to set the host" \ - "manually." - fi - echo "Error message:" `sh $HOSTSDIR/scripts/host-type.sh 2>&1` - echo "" - exit 1 -fi - -BINDIR="$HOSTSDIR/$SIMICS_HOST/bin" diff --git a/simics-tools/scripts/host-type.sh b/simics-tools/scripts/host-type.sh deleted file mode 100755 index cf05d9b..0000000 --- a/simics-tools/scripts/host-type.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh - -OS=`uname -s` -HOST_ARCH=`uname -m` - -SCRIPTSDIR="`dirname "$0"`" -SIMICS_ROOT="`cd "$SCRIPTSDIR"/.. ; pwd`" - -case $HOST_ARCH in - i*86) - BITS="32" - ;; - x86_64|amd64) - BITS="64 32" - ;; - *) - echo "Unsupported architecture: $HOST_ARCH" >&2 - exit 1 - ;; -esac - -case $OS in - Linux) - OS_PART=linux - ;; - CYGWIN_NT*WOW64) - OS_PART=win - # Cygwin is only a 32 bit application, which causes the host arch - # detection to go wrong, so override it here - BITS="64 32" - ;; - CYGWIN_NT*) - OS_PART=win - ;; - *) - echo "Unsupported OS: $OS" >&2 - exit 1 - ;; -esac - - -# should be renamed to SIMICS_HOST_DIR (bug 10827) -# -#
SIMICS_HOST
-#
-# Overrides the host type detected by Simics. The value must be the -# name of the directory containing the host-specific files of a Simics -# installation. Typically a string on the form arch-os, e.g., -# linux32. -#
-if [ -n "$SIMICS_HOST" ]; then - if [ -d "$SIMICS_ROOT/$SIMICS_HOST/bin" ]; then - echo $SIMICS_HOST - exit 0 - else - echo "Non-existing host $SIMICS_HOST." >&2 - exit 1 - fi -else - for bits in $BITS; do - host=$OS_PART$bits - if [ -d "$SIMICS_ROOT/$host/bin" ]; then - echo $host - exit 0 - fi - done - echo "No matching host found." >&2 - exit 1 -fi diff --git a/simics-tools/scripts/host_type.py b/simics-tools/scripts/host_type.py deleted file mode 100755 index 0913378..0000000 --- a/simics-tools/scripts/host_type.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/python - -# This Software is part of Wind River Simics. The rights to copy, distribute, -# modify, or otherwise make use of this Software may be licensed only -# pursuant to the terms of an applicable Wind River license agreement. -# -# Copyright 2010-2016 Intel Corporation - -# Platform-independent and import-able Python interface to host-type.sh. - -from subprocess import Popen, PIPE -import os, sys -import simicsutils.host - -class HostTypeError(Exception): pass - -def host_type(simics_root): - if simicsutils.host.is_windows(): - # sh is not available, so instead emulate the behavior of host-type.sh - return os.environ.get('SIMICS_HOST', simicsutils.host.host_type()) - host_type_sh = os.path.join(simics_root, "scripts", "host-type.sh") - if not os.path.isfile(host_type_sh): - raise HostTypeError("Invalid simics_root: Script '%s' not found" - % host_type_sh) - - proc = Popen([host_type_sh], stdout = PIPE, stderr = PIPE) - (stdout, stderr) = proc.communicate() - if proc.returncode == 0: - return stdout.rstrip() - else: - raise HostTypeError("%s failed: " % host_type_sh + stderr) - -if __name__ == "__main__": - simics_root = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0]))) - try: - result = host_type(simics_root) - except HostTypeError, e: - sys.stderr.write(e.message) - exit(1) - sys.stdout.write(result + "\n")