From 672416929813708f48e5376c8de00a4f7a69aa9a Mon Sep 17 00:00:00 2001 From: dam1n19 <dam1n19@soton.ac.uk> Date: Tue, 11 Apr 2023 13:02:38 +0100 Subject: [PATCH] SOC1-124: Restructured environment setup and environment variable names --- set_env.sh | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100755 set_env.sh diff --git a/set_env.sh b/set_env.sh deleted file mode 100755 index c60d173..0000000 --- a/set_env.sh +++ /dev/null @@ -1,51 +0,0 @@ -#----------------------------------------------------------------------------- -# SoC Labs Environment Setup Script -# A joint work commissioned on behalf of SoC Labs, under Arm Academic Access license. -# -# Contributors -# -# David Mapstone (d.a.mapstone@soton.ac.uk) -# -# Copyright 2023, SoC Labs (www.soclabs.org) -#----------------------------------------------------------------------------- -#!/bin/bash - -# Get Root Location of Design Structure -if [ -z $DESIGN_ROOT ]; then - # If $DESIGN_ROOT hasn't been set yet - DESIGN_ROOT=`git rev-parse --show-superproject-working-tree` - - if [ -z $DESIGN_ROOT ]; then - # If not in a submodule - at root - DESIGN_ROOT=`git rev-parse --show-toplevel` - fi - - # Source Top-Level Sourceme - source $DESIGN_ROOT/set_env.sh -else - # Set Environment Variable for this Repository - export CHIPKIT_DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")" && pwd)" - - # If this Repo is root of workspace - if [ $CHIPKIT_DIR = $DESIGN_ROOT ]; then - echo "Design Workspace: $DESIGN_ROOT" - export DESIGN_ROOT - # Set Default Simulator - export SIMULATOR="ivlog" - fi - - # Source environment variables for all submodules - for d in $CHIPKIT_DIR/* ; do - if [ -f "$d/.git" ]; then - if [ -f "$d/set_env.sh" ]; then - # If .git file exists - submodule - source $d/set_env.sh - fi - fi - done - - # Add Scripts to Path - export PATH="$PATH:/$CHIPKIT_DIR" - export PATH="$PATH:/$CHIPKIT_DIR/flow" - export PYTHONPATH="$PYTHONPATH:$CHIPKIT_DIR/tools/vgen/bin" -fi \ No newline at end of file -- GitLab