Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CHIPKIT Flow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
CHIPKIT Flow
Compare revisions
89226d95cde43401ac3773c73049f4e623baeac6 to 672416929813708f48e5376c8de00a4f7a69aa9a
Project 'soclabs/CHIPKIT' was moved to 'soclabs/chipkit_flow'. Please update any links and bookmarks that may still have the old path.
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
soclabs/chipkit_flow
Select target project
No results found
672416929813708f48e5376c8de00a4f7a69aa9a
Select Git revision
Branches
feat_apb_regs
main
2 results
Swap
Target
soclabs/chipkit_flow
Select target project
soclabs/chipkit_flow
1 result
89226d95cde43401ac3773c73049f4e623baeac6
Select Git revision
Branches
feat_apb_regs
main
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
SOC1-124: Restructured environment setup and environment variable names
· 67241692
dam1n19
authored
2 years ago
67241692
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
set_env.sh
+0
-51
0 additions, 51 deletions
set_env.sh
with
0 additions
and
51 deletions
set_env.sh
deleted
100755 → 0
View file @
89226d95
#-----------------------------------------------------------------------------
# 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
This diff is collapsed.
Click to expand it.