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
1714c341
Commit
1714c341
authored
1 year ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
Changed environment setup script to run subpreo_checkout.py
parent
efc3b32e
No related branches found
No related tags found
1 merge request
!1
Changed set_env flow to source script in soctools and breadcrumb left in...
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
set_env.sh
+2
-1
2 additions, 1 deletion
set_env.sh
soctools_flow
+1
-1
1 addition, 1 deletion
soctools_flow
with
4 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
1
View file @
1714c341
...
...
@@ -31,7 +31,7 @@ simulate-nanosoc:
script
:
-
echo "Simulation phase started"
-
git submodule foreach --recursive git submodule init
#
- git
pull
--recurse-submodules
-
git
fetch
--recurse-submodules
-
source set_env.sh
-
sleep
5
tags
:
...
...
This diff is collapsed.
Click to expand it.
set_env.sh
+
2
−
1
View file @
1714c341
...
...
@@ -64,9 +64,10 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then
# Source environment variables for all submodules
cd
$SOCLABS_DESIGN_ROOT
git submodule update
--remote
--recursive
python3
$SOCLABS_SOCTOOLS_FLOW_DIR
/bin/subrepo_checkout.py
-b
proj-branch
-t
$SOCLABS_DESIGN_ROOT
#git submodule foreach --recursive git checkout main # TODO: Bug on this line - need to checkout to correct branch
# 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
$SOCLABS_PROJECT_DIR
/
$line
&&
git checkout
`
grep
$line
$SOCLABS_PROJECT_DIR
/proj-branch |
awk
'{ print $2 }'
`
&&
git pull
;
done
#
git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $SOCLABS_PROJECT_DIR/$line && git checkout `grep $line $SOCLABS_PROJECT_DIR/proj-branch | awk '{ print $2 }'` && git pull; done
git restore
$SOCLABS_DESIGN_ROOT
/.gitmodules
touch
$SOCLABS_PROJECT_DIR
/.socinit
fi
This diff is collapsed.
Click to expand it.
soctools_flow
@
3b989540
Compare
ddb82138
...
3b989540
Subproject commit
ddb82138ed9628b4dc011e7a156555fb6c23399a
Subproject commit
3b98954095dd0e7b62f520751fd148a16c9f4d03
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