Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Accelerator Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
Accelerator Project
Commits
33b9347c
Commit
33b9347c
authored
2 years ago
by
David Mapstone
Browse files
Options
Downloads
Patches
Plain Diff
Added Environment Sourcing Script
parent
3534924a
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
accelerator-wrapper
+1
-1
1 addition, 1 deletion
accelerator-wrapper
nanosoc
+1
-1
1 addition, 1 deletion
nanosoc
scripts/soc-pull
+9
-0
9 additions, 0 deletions
scripts/soc-pull
set_env.sh
+43
-0
43 additions, 0 deletions
set_env.sh
sha-2-accelerator
+1
-1
1 addition, 1 deletion
sha-2-accelerator
with
55 additions
and
3 deletions
accelerator-wrapper
@
182d5071
Compare
dc11858b
...
182d5071
Subproject commit
dc11858b92e1e6e842b69410ad91eb498cfbde87
Subproject commit
182d50719dca5eab2e23974ba6097da3cc8ac7a5
This diff is collapsed.
Click to expand it.
nanosoc
@
74c8e4cd
Compare
dc546576
...
74c8e4cd
Subproject commit
dc54657650d9c0828d2e13d6f26005e01430cb2d
Subproject commit
74c8e4cdaad55b46db901cf336f12828344099ca
This diff is collapsed.
Click to expand it.
scripts/soc-pull
0 → 100755
+
9
−
0
View file @
33b9347c
#!/bin/bash
# Update all Submodules to latest commit
for
d
in
$DESIGN_ROOT
/
*
;
do
if
[
-f
"
$d
/.git"
]
;
then
echo
"Git Pulling
$d
"
cd
$d
;
git pull
;
cd
..
fi
done
\ No newline at end of file
This diff is collapsed.
Click to expand it.
set_env.sh
0 → 100755
+
43
−
0
View file @
33b9347c
#-----------------------------------------------------------------------------
# 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 Repository
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
DESIGN_ROOT
=
`
git rev-parse
--show-toplevel
`
fi
fi
# Set Environment Variable for this Repository
export
SHA_2_SOC_DIR
=
"
$(
cd
--
"
$(
dirname
"
$0
"
)
"
>
/dev/null 2>&1
;
pwd
-P
)
"
# If this Repo is root of workspace
if
[
$SHA_2_SOC_DIR
=
$DESIGN_ROOT
]
;
then
echo
"Design Workspace:
$SHA_2_SOC_DIR
"
export
DESIGN_ROOT
fi
# Source environment variables for all submodules
for
d
in
$SHA_2_SOC_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
:/
$DESIGN_ROOT
/scripts"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sha-2-accelerator
@
df94cd39
Compare
b50a185c
...
df94cd39
Subproject commit
b50a185cf41cbc38dd9a917b7d61a698c2e205d7
Subproject commit
df94cd39be37fd9820d69167015865ffbacb8265
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment