Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Secworks SHA256 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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
SoCLabs
Secworks SHA256 Project
Commits
6f823204
Commit
6f823204
authored
2 years ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-124
: Added method to determine branch for each subrepo
parent
270c6b56
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
proj-branch
+19
-0
19 additions, 0 deletions
proj-branch
set_env.sh
+2
-0
2 additions, 0 deletions
set_env.sh
with
21 additions
and
0 deletions
proj-branch
0 → 100644
+
19
−
0
View file @
6f823204
#-----------------------------------------------------------------------------
# SoC Labs Sub repository branch setup
# 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)
#-----------------------------------------------------------------------------
# Each Repo needs to have its branch set manually in here - they will defaultly be checked out to main
# Project Repository Subrepository Branch Index
nanosoc: feat_accel_decouple
CHIPKIT: main
accelerator-wrapper: main
fpga-lib: main
generic-lib: main
secworks-sha256: main
socsim: main
\ No newline at end of file
This diff is collapsed.
Click to expand it.
set_env.sh
+
2
−
0
View file @
6f823204
...
...
@@ -72,6 +72,8 @@ if [ ! -f $PROJECT_DIR/.socinit ]; then
done
git submodule update
--remote
--recursive
git submodule foreach
--recursive
git checkout main
# Read proj-branch file to find out which branch each subrepo needs to be on
git config
--file
.gitmodules
--get-regexp
path |
awk
'{ print $2 }'
|
while
read
line
;
do
cd
$PROJECT_DIR
/
$line
&&
git checkout
`
grep
$line
$PROJECT_DIR
/project-branch |
awk
'{ print $2 }'
`
;
done
git restore
$DESIGN_ROOT
/.gitmodules
touch
$PROJECT_DIR
/.socinit
fi
\ No newline at end of file
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